public class UnsetOperation extends Object implements FieldsExposingAggregationOperation.InheritsFieldsAggregationOperation
FieldsExposingAggregationOperation.InheritsFieldsAggregationOperation| Constructor and Description |
|---|
UnsetOperation(Collection<Object> fields)
Create new instance of
UnsetOperation. |
| Modifier and Type | Method and Description |
|---|---|
UnsetOperation |
and(Field... fields)
Also unset the given fields.
|
UnsetOperation |
and(String... fields)
Also unset the given fields.
|
ExposedFields |
getFields()
Returns the fields exposed by the
AggregationOperation. |
String |
getOperator()
Return the MongoDB operator that is used for this
AggregationOperation. |
org.bson.Document |
toDocument(AggregationOperationContext context)
|
static UnsetOperation |
unset(String... fields)
Create new instance of
UnsetOperation. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinheritsFieldstoPipelineStagespublic UnsetOperation(Collection<Object> fields)
UnsetOperation.fields - must not be null.public static UnsetOperation unset(String... fields)
UnsetOperation.fields - must not be null.UnsetOperation.public UnsetOperation and(String... fields)
fields - must not be null.UnsetOperation.public UnsetOperation and(Field... fields)
fields - must not be null.UnsetOperation.public ExposedFields getFields()
FieldsExposingAggregationOperationAggregationOperation.getFields in interface FieldsExposingAggregationOperationpublic org.bson.Document toDocument(AggregationOperationContext context)
AggregationOperationtoDocument in interface AggregationOperationcontext - the AggregationOperationContext to operate within. Must not be null.public String getOperator()
AggregationOperationAggregationOperation. Aggregation operations should
implement this method to avoid document rendering.getOperator in interface AggregationOperationAggregationOperation.Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.