public static class StringOperators.IndexOfBytes extends Object
AggregationExpression for $indexOfBytes.| Modifier and Type | Class and Description |
|---|---|
static class |
StringOperators.IndexOfBytes.SubstringBuilder |
| Modifier and Type | Method and Description |
|---|---|
protected List<Object> |
append(Object value) |
protected Map<String,Object> |
append(String key,
Object value) |
protected Map<String,Object> |
argumentMap()
Get the argument map.
|
protected static List<Field> |
asFields(String... fieldRefs) |
protected boolean |
contains(Object key)
Check if the given key is available.
|
protected <T> T |
get(int index)
Get the value at a given index.
|
protected <T> T |
get(Object key)
Get the value for a given key.
|
protected String |
getMongoMethod() |
org.bson.Document |
toDocument(AggregationOperationContext context)
|
org.bson.Document |
toDocument(Object value,
AggregationOperationContext context) |
static StringOperators.IndexOfBytes.SubstringBuilder |
valueOf(AggregationExpression expression)
Start creating a new
StringOperators.IndexOfBytes. |
static StringOperators.IndexOfBytes.SubstringBuilder |
valueOf(String fieldReference)
Start creating a new
StringOperators.IndexOfBytes. |
protected List<Object> |
values() |
StringOperators.IndexOfBytes |
within(Range<Long> range)
Optionally define the substring search start and end position.
|
protected String getMongoMethod()
public static StringOperators.IndexOfBytes.SubstringBuilder valueOf(String fieldReference)
StringOperators.IndexOfBytes.fieldReference - must not be null.public static StringOperators.IndexOfBytes.SubstringBuilder valueOf(AggregationExpression expression)
StringOperators.IndexOfBytes.expression - must not be null.public StringOperators.IndexOfBytes within(Range<Long> range)
range - must not be null.public org.bson.Document toDocument(AggregationOperationContext context)
AggregationExpressiontoDocument in interface AggregationExpressionpublic org.bson.Document toDocument(Object value, AggregationOperationContext context)
protected <T> T get(int index)
T - index - protected <T> T get(Object key)
T - key - protected boolean contains(Object key)
key - Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.