Uses of Class
org.springframework.data.mongodb.core.aggregation.StringOperators.RegexMatch
Package
Description
Support for the MongoDB aggregation framework.
-
Uses of StringOperators.RegexMatch in org.springframework.data.mongodb.core.aggregation
Modifier and TypeMethodDescriptionOptional specify the options to use with the regular expression.Optional specify the reference to thefield
holding the options values to use with the regular expression.StringOperators.RegexMatch.optionsOf
(AggregationExpression expression) Optional specify theAggregationExpression
evaluating to the options values to use with the regular expression.Specify the regular expression to apply.StringOperators.StringOperatorFactory.regexMatch
(String regex) Creates newAggregationExpression
that takes the associated string representation and applies the given regular expression to find if a match is found or not.
NOTE: Requires MongoDB 4.0 or later.StringOperators.StringOperatorFactory.regexMatch
(String regex, String options) Creates newAggregationExpression
that takes the associated string representation and applies the regular expression with the options specified in the argument to find if a match is found or not.StringOperators.StringOperatorFactory.regexMatch
(Pattern pattern) Creates newAggregationExpression
that takes aPattern
and applies the regular expression with the options specified in the argument to find if a match is found or not.StringOperators.StringOperatorFactory.regexMatch
(AggregationExpression expression) Creates newAggregationExpression
that takes the associated string representation and applies the regular expression resulting from the givenAggregationExpression
to find if a match is found or not.
NOTE: Requires MongoDB 4.0 or later.Specify the reference to thefield
holding the regular expression to apply.StringOperators.RegexMatch.regexOf
(AggregationExpression expression) Optional specify theAggregationExpression
evaluating to the regular expression to apply.static StringOperators.RegexMatch
Creates newStringOperators.RegexMatch
using the value of the providedfieldReference
as input value.static StringOperators.RegexMatch
StringOperators.RegexMatch.valueOf
(AggregationExpression expression) Creates newStringOperators.RegexMatch
using the result of the providedAggregationExpression
as input value.