public static class StringOperators.IndexOfCP extends Object
AggregationExpression for $indexOfCP.| Modifier and Type | Class and Description |
|---|---|
static class |
StringOperators.IndexOfCP.SubstringBuilder |
| 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() |
com.mongodb.DBObject |
toDbObject(AggregationOperationContext context)
|
com.mongodb.DBObject |
toDbObject(Object value,
AggregationOperationContext context) |
static StringOperators.IndexOfCP.SubstringBuilder |
valueOf(AggregationExpression expression)
Start creating a new
StringOperators.IndexOfCP. |
static StringOperators.IndexOfCP.SubstringBuilder |
valueOf(String fieldReference)
Start creating a new
StringOperators.IndexOfCP. |
protected List<Object> |
values() |
StringOperators.IndexOfCP |
within(Range<Long> range)
Optionally define the substring search start and end position.
|
protected String getMongoMethod()
public static StringOperators.IndexOfCP.SubstringBuilder valueOf(String fieldReference)
StringOperators.IndexOfCP.fieldReference - must not be null.public static StringOperators.IndexOfCP.SubstringBuilder valueOf(AggregationExpression expression)
StringOperators.IndexOfCP.expression - must not be null.public StringOperators.IndexOfCP within(Range<Long> range)
range - must not be null.public com.mongodb.DBObject toDbObject(AggregationOperationContext context)
AggregationExpressiontoDbObject in interface AggregationExpressionpublic com.mongodb.DBObject toDbObject(Object value, AggregationOperationContext context)
Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.