public static class DataTypeOperators.Type extends Object
AggregationExpression for $type.| Modifier and Type | Method and Description |
|---|---|
protected List<Object> |
append(Object value) |
protected Map<String,Object> |
append(String key,
Object value) |
protected static List<Field> |
asFields(String... fieldRefs) |
protected String |
getMongoMethod() |
org.bson.Document |
toDocument(AggregationOperationContext context)
|
org.bson.Document |
toDocument(Object value,
AggregationOperationContext context) |
static DataTypeOperators.Type |
typeOf(String field)
Creates new
DataTypeOperators.Type. |
protected List<Object> |
values() |
protected String getMongoMethod()
public static DataTypeOperators.Type typeOf(String field)
DataTypeOperators.Type.field - must not be null.public org.bson.Document toDocument(AggregationOperationContext context)
AggregationExpressiontoDocument in interface AggregationExpressionpublic org.bson.Document toDocument(Object value, AggregationOperationContext context)
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.