Class WildcardPattern
java.lang.Object
org.elasticsearch.xpack.esql.core.expression.predicate.regex.AbstractStringPattern
org.elasticsearch.xpack.esql.core.expression.predicate.regex.WildcardPattern
- All Implemented Interfaces:
StringPattern
Similar to basic regex, supporting '?' wildcard for single character (same as regex ".")
and '*' wildcard for multiple characters (same as regex ".*")
Allows escaping based on a regular char
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the pattern in (IndexNameExpressionResolver) wildcard format.Returns the pattern in (Java) regex format.Returns the pattern in (Lucene) wildcard format.org.apache.lucene.util.automaton.AutomatonbooleaninthashCode()pattern()Returns the pattern as it was defined by the user.Methods inherited from class org.elasticsearch.xpack.esql.core.expression.predicate.regex.AbstractStringPattern
exactMatch, matchesAll
-
Constructor Details
-
WildcardPattern
-
-
Method Details
-
pattern
Description copied from interface:StringPatternReturns the pattern as it was defined by the user. -
createAutomaton
public org.apache.lucene.util.automaton.Automaton createAutomaton()- Specified by:
createAutomatonin classAbstractStringPattern
-
asJavaRegex
Description copied from interface:StringPatternReturns the pattern in (Java) regex format. -
asLuceneWildcard
Returns the pattern in (Lucene) wildcard format. -
asIndexNameWildcard
Returns the pattern in (IndexNameExpressionResolver) wildcard format. -
hashCode
public int hashCode() -
equals
-