public static class SetOperators.SetUnion extends Object
AggregationExpression for $setUnion.| Modifier and Type | Method and Description |
|---|---|
protected List<Object> |
append(Object value) |
protected Map<String,Object> |
append(String key,
Object value) |
static SetOperators.SetUnion |
arrayAsSet(AggregationExpression expression)
Creates new
SetOperators.SetUnion. |
static SetOperators.SetUnion |
arrayAsSet(String arrayReference)
Creates new
SetOperators.SetUnion. |
protected static List<Field> |
asFields(String... fieldRefs) |
protected String |
getMongoMethod() |
com.mongodb.DBObject |
toDbObject(AggregationOperationContext context)
|
com.mongodb.DBObject |
toDbObject(Object value,
AggregationOperationContext context) |
SetOperators.SetUnion |
union(AggregationExpression... expressions)
Creates new
SetOperators.SetUnion with all previously added arguments appending the given one. |
SetOperators.SetUnion |
union(String... arrayReferences)
Creates new
SetOperators.SetUnion with all previously added arguments appending the given one. |
protected List<Object> |
values() |
protected String getMongoMethod()
public static SetOperators.SetUnion arrayAsSet(String arrayReference)
SetOperators.SetUnion.arrayReference - must not be null.public static SetOperators.SetUnion arrayAsSet(AggregationExpression expression)
SetOperators.SetUnion.expression - must not be null.public SetOperators.SetUnion union(String... arrayReferences)
SetOperators.SetUnion with all previously added arguments appending the given one.arrayReferences - must not be null.public SetOperators.SetUnion union(AggregationExpression... expressions)
SetOperators.SetUnion with all previously added arguments appending the given one.expressions - 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.