Uses of Class
org.springframework.data.mongodb.core.aggregation.StringOperators.RegexMatch
Packages that use StringOperators.RegexMatch
Package
Description
Support for the MongoDB aggregation framework.
-
Uses of StringOperators.RegexMatch in org.springframework.data.mongodb.core.aggregation
Methods in org.springframework.data.mongodb.core.aggregation that return StringOperators.RegexMatchModifier and TypeMethodDescriptionOptional specify the options to use with the regular expression.Optional specify the reference to thefieldholding the options values to use with the regular expression.StringOperators.RegexMatch.optionsOf(AggregationExpression expression) Optional specify theAggregationExpressionevaluating to the options values to use with the regular expression.Specify the regular expression to apply.StringOperators.StringOperatorFactory.regexMatch(String regex) Creates newAggregationExpressionthat 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 newAggregationExpressionthat 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 newAggregationExpressionthat takes aPatternand 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 newAggregationExpressionthat takes the associated string representation and applies the regular expression resulting from the givenAggregationExpressionto find if a match is found or not.
NOTE: Requires MongoDB 4.0 or later.Specify the reference to thefieldholding the regular expression to apply.StringOperators.RegexMatch.regexOf(AggregationExpression expression) Optional specify theAggregationExpressionevaluating to the regular expression to apply.static StringOperators.RegexMatchCreates newStringOperators.RegexMatchusing the value of the providedfieldReferenceas input value.static StringOperators.RegexMatchStringOperators.RegexMatch.valueOf(AggregationExpression expression) Creates newStringOperators.RegexMatchusing the result of the providedAggregationExpressionas input value.