public static class StringOperators.RTrim extends Object
AggregationExpression for $rtrim which removes whitespace or the specified characters from the end
of a string. | 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) |
StringOperators.RTrim |
chars(String chars)
Optional specify the character(s) to trim from the end.
|
StringOperators.RTrim |
charsOf(AggregationExpression expression)
Optional specify the
AggregationExpression evaluating to the character sequence to trim from the end. |
StringOperators.RTrim |
charsOf(String fieldReference)
Optional specify the reference to the
field holding the character values to trim from the end. |
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.RTrim |
valueOf(AggregationExpression expression)
Creates new
StringOperators.RTrim using the result of the provided AggregationExpression as input
value. |
static StringOperators.RTrim |
valueOf(String fieldReference)
Creates new
StringOperators.RTrim using the value of the provided fieldReference as input value. |
protected List<Object> |
values() |
public static StringOperators.RTrim valueOf(String fieldReference)
StringOperators.RTrim using the value of the provided fieldReference as input value.fieldReference - must not be null.StringOperators.RTrim.public static StringOperators.RTrim valueOf(AggregationExpression expression)
StringOperators.RTrim using the result of the provided AggregationExpression as input
value.expression - must not be null.StringOperators.RTrim.public StringOperators.RTrim chars(String chars)
chars - must not be null.StringOperators.RTrim.public StringOperators.RTrim charsOf(String fieldReference)
field holding the character values to trim from the end.fieldReference - must not be null.StringOperators.RTrim.public StringOperators.RTrim charsOf(AggregationExpression expression)
AggregationExpression evaluating to the character sequence to trim from the end.expression - must not be null.StringOperators.RTrim.protected String getMongoMethod()
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.