public static class StringOperators.Substr extends Object
AggregationExpression
for $substr
.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() |
StringOperators.Substr |
substring(int start) |
StringOperators.Substr |
substring(int start,
int nrOfChars) |
org.bson.Document |
toDocument(AggregationOperationContext context)
|
org.bson.Document |
toDocument(Object value,
AggregationOperationContext context) |
static StringOperators.Substr |
valueOf(AggregationExpression expression)
Creates new
StringOperators.Substr . |
static StringOperators.Substr |
valueOf(String fieldReference)
Creates new
StringOperators.Substr . |
protected List<Object> |
values() |
protected String getMongoMethod()
public static StringOperators.Substr valueOf(String fieldReference)
StringOperators.Substr
.fieldReference
- must not be null.public static StringOperators.Substr valueOf(AggregationExpression expression)
StringOperators.Substr
.expression
- must not be null.public StringOperators.Substr substring(int start)
public StringOperators.Substr substring(int start, int nrOfChars)
public org.bson.Document toDocument(AggregationOperationContext context)
AggregationExpression
toDocument
in interface AggregationExpression
public org.bson.Document toDocument(Object value, AggregationOperationContext context)
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.