public static class StringOperators.RegexFindAll extends Object
AggregationExpression for $regexFindAll which applies a regular expression (regex) to a string and
returns information on all the matched substrings. | Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractAggregationExpression.Expand
Expand a nested list of values to single entries or keep the list.
|
| Modifier | Constructor and Description |
|---|---|
protected |
RegexFindAll(Object value) |
| Modifier and Type | Method and Description |
|---|---|
protected List<Object> |
append(Object value) |
protected List<Object> |
append(Object value,
AbstractAggregationExpression.Expand expandList) |
protected Map<String,Object> |
append(String key,
Object value) |
protected Map<String,Object> |
appendAt(int index,
String key,
Object value)
Append the given key at the position in the underlying
LinkedHashMap. |
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() |
StringOperators.RegexFindAll |
options(String options)
Optional specify the options to use with the regular expression.
|
StringOperators.RegexFindAll |
optionsOf(AggregationExpression expression)
Optional specify the
AggregationExpression evaluating to the options values to use with the regular
expression. |
StringOperators.RegexFindAll |
optionsOf(String fieldReference)
Optional specify the reference to the
field holding the options values to use with the regular
expression. |
StringOperators.RegexFindAll |
pattern(Pattern pattern)
|
StringOperators.RegexFindAll |
regex(String regex)
Specify the regular expression to apply.
|
StringOperators.RegexFindAll |
regexOf(AggregationExpression expression)
Specify the
AggregationExpression evaluating to the regular expression to apply. |
StringOperators.RegexFindAll |
regexOf(String fieldReference)
Specify the reference to the
field holding the regular expression to apply. |
protected Map<String,Object> |
remove(String key) |
org.bson.Document |
toDocument(AggregationOperationContext context)
|
org.bson.Document |
toDocument(Object value,
AggregationOperationContext context) |
static StringOperators.RegexFindAll |
valueOf(AggregationExpression expression)
Creates new
StringOperators.RegexFindAll using the result of the provided AggregationExpression as
input value. |
static StringOperators.RegexFindAll |
valueOf(String fieldReference)
Creates new
StringOperators.RegexFindAll using the value of the provided fieldReference as input
value. |
protected List<Object> |
values() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfrom, toDocumentcreate, createprotected RegexFindAll(Object value)
public static StringOperators.RegexFindAll valueOf(String fieldReference)
StringOperators.RegexFindAll using the value of the provided fieldReference as input
value.fieldReference - must not be null.StringOperators.RegexFindAll.public static StringOperators.RegexFindAll valueOf(AggregationExpression expression)
StringOperators.RegexFindAll using the result of the provided AggregationExpression as
input value.expression - must not be null.StringOperators.RegexFindAll.public StringOperators.RegexFindAll options(String options)
options - must not be null.StringOperators.RegexFindAll.public StringOperators.RegexFindAll optionsOf(String fieldReference)
field holding the options values to use with the regular
expression.fieldReference - must not be null.StringOperators.RegexFindAll.public StringOperators.RegexFindAll optionsOf(AggregationExpression expression)
AggregationExpression evaluating to the options values to use with the regular
expression.expression - must not be null.StringOperators.RegexFindAll.public StringOperators.RegexFindAll pattern(Pattern pattern)
pattern - must not be null.StringOperators.RegexFindAll.public StringOperators.RegexFindAll regex(String regex)
regex - must not be null.StringOperators.RegexFindAll.public StringOperators.RegexFindAll regexOf(String fieldReference)
field holding the regular expression to apply.fieldReference - must not be null.StringOperators.RegexFindAll.public StringOperators.RegexFindAll regexOf(AggregationExpression expression)
AggregationExpression evaluating to the regular expression to apply.expression - must not be null.StringOperators.RegexFindAll.protected String getMongoMethod()
public org.bson.Document toDocument(AggregationOperationContext context)
AggregationExpressiontoDocument in interface AggregationExpressioncontext - must not be null.Document) form of the expression.public org.bson.Document toDocument(Object value, AggregationOperationContext context)
protected List<Object> append(Object value, AbstractAggregationExpression.Expand expandList)
protected Map<String,Object> appendAt(int index, String key, Object value)
LinkedHashMap.index - key - value - protected <T> T get(int index)
T - index - protected <T> T get(Object key)
T - key - protected boolean contains(Object key)
key - Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.