public static class SetOperators.SetEquals extends Object
AggregationExpression for $setEquals.| Modifier and Type | Method and Description |
|---|---|
protected List<Object> |
append(Object value) |
protected Map<String,Object> |
append(String key,
Object value) |
static SetOperators.SetEquals |
arrayAsSet(AggregationExpression expression)
Create new
SetOperators.SetEquals. |
static SetOperators.SetEquals |
arrayAsSet(String arrayReference)
Create new
SetOperators.SetEquals. |
protected static List<Field> |
asFields(String... fieldRefs) |
protected String |
getMongoMethod() |
SetOperators.SetEquals |
isEqualTo(AggregationExpression... expressions)
Creates new
AccumulatorOperators.Sum with all previously added arguments appending the given one. |
SetOperators.SetEquals |
isEqualTo(Object[] array)
Creates new
AccumulatorOperators.Sum with all previously added arguments appending the given one. |
SetOperators.SetEquals |
isEqualTo(String... arrayReferences)
Creates new
Set with all previously added arguments appending the given one. |
com.mongodb.DBObject |
toDbObject(AggregationOperationContext context)
|
com.mongodb.DBObject |
toDbObject(Object value,
AggregationOperationContext context) |
protected List<Object> |
values() |
protected String getMongoMethod()
public static SetOperators.SetEquals arrayAsSet(String arrayReference)
SetOperators.SetEquals.arrayReference - must not be null.public static SetOperators.SetEquals arrayAsSet(AggregationExpression expression)
SetOperators.SetEquals.expression - must not be null.public SetOperators.SetEquals isEqualTo(String... arrayReferences)
Set with all previously added arguments appending the given one.arrayReferences - must not be null.public SetOperators.SetEquals isEqualTo(AggregationExpression... expressions)
AccumulatorOperators.Sum with all previously added arguments appending the given one.expressions - must not be null.public SetOperators.SetEquals isEqualTo(Object[] array)
AccumulatorOperators.Sum with all previously added arguments appending the given one.array - must not be null.public com.mongodb.DBObject toDbObject(AggregationOperationContext context)
AggregationExpressiontoDbObject in interface AggregationExpressionpublic com.mongodb.DBObject toDbObject(Object value, AggregationOperationContext context)
Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.