public static class StringOperators.SubstrCP extends Object
AggregationExpression
for $substrCP
.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.SubstrCP |
substringCP(int start) |
StringOperators.SubstrCP |
substringCP(int start,
int nrOfChars) |
com.mongodb.DBObject |
toDbObject(AggregationOperationContext context)
|
com.mongodb.DBObject |
toDbObject(Object value,
AggregationOperationContext context) |
static StringOperators.SubstrCP |
valueOf(AggregationExpression expression)
Creates new
StringOperators.SubstrCP . |
static StringOperators.SubstrCP |
valueOf(String fieldReference)
Creates new
StringOperators.SubstrCP . |
protected List<Object> |
values() |
protected String getMongoMethod()
public static StringOperators.SubstrCP valueOf(String fieldReference)
StringOperators.SubstrCP
.fieldReference
- must not be null.public static StringOperators.SubstrCP valueOf(AggregationExpression expression)
StringOperators.SubstrCP
.expression
- must not be null.public StringOperators.SubstrCP substringCP(int start)
public StringOperators.SubstrCP substringCP(int start, int nrOfChars)
public com.mongodb.DBObject toDbObject(AggregationOperationContext context)
AggregationExpression
toDbObject
in interface AggregationExpression
public com.mongodb.DBObject toDbObject(Object value, AggregationOperationContext context)
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.