public static class SetOperators.SetDifference extends Object
AggregationExpression for $setDifference.| Modifier and Type | Method and Description |
|---|---|
protected List<Object> |
append(Object value) |
protected Map<String,Object> |
append(String key,
Object value) |
protected Map<String,Object> |
argumentMap()
Get the argument map.
|
static SetOperators.SetDifference |
arrayAsSet(AggregationExpression expression)
Creates new
SetOperators.SetDifference. |
static SetOperators.SetDifference |
arrayAsSet(String arrayReference)
Creates new
SetOperators.SetDifference. |
protected static List<Field> |
asFields(String... fieldRefs) |
protected boolean |
contains(Object key)
Check if the given key is available.
|
SetOperators.SetDifference |
differenceTo(AggregationExpression expression)
Creates new
SetOperators.SetDifference with all previously added arguments appending the given one. |
SetOperators.SetDifference |
differenceTo(String arrayReference)
Creates new
SetOperators.SetDifference with all previously added arguments appending the given one. |
protected <T> T |
get(int index)
Get the value at a given index.
|
protected <T> T |
get(Object key)
Get the value for a given key.
|
protected String |
getMongoMethod() |
org.bson.Document |
toDocument(AggregationOperationContext context)
|
org.bson.Document |
toDocument(Object value,
AggregationOperationContext context) |
protected List<Object> |
values() |
protected String getMongoMethod()
public static SetOperators.SetDifference arrayAsSet(String arrayReference)
SetOperators.SetDifference.arrayReference - must not be null.public static SetOperators.SetDifference arrayAsSet(AggregationExpression expression)
SetOperators.SetDifference.expression - must not be null.public SetOperators.SetDifference differenceTo(String arrayReference)
SetOperators.SetDifference with all previously added arguments appending the given one.arrayReference - must not be null.public SetOperators.SetDifference differenceTo(AggregationExpression expression)
SetOperators.SetDifference with all previously added arguments appending the given one.expression - must not be null.public org.bson.Document toDocument(AggregationOperationContext context)
AggregationExpressiontoDocument in interface AggregationExpressionpublic org.bson.Document toDocument(Object value, AggregationOperationContext context)
protected <T> T get(int index)
T - index - protected <T> T get(Object key)
T - key - protected boolean contains(Object key)
key - Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.