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:
Writeable,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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
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.AutomatoncreateAutomaton(boolean ignoreCase) booleaninthashCode()pattern()Returns the pattern as it was defined by the user.voidwriteTo(StreamOutput out) Methods inherited from class org.elasticsearch.xpack.esql.core.expression.predicate.regex.AbstractStringPattern
exactMatch, matchesAll
-
Constructor Details
-
WildcardPattern
-
WildcardPattern
- Throws:
IOException
-
-
Method Details
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
pattern
Description copied from interface:StringPatternReturns the pattern as it was defined by the user.- Specified by:
patternin interfaceStringPattern
-
createAutomaton
public org.apache.lucene.util.automaton.Automaton createAutomaton(boolean ignoreCase) - Specified by:
createAutomatonin classAbstractStringPattern
-
asJavaRegex
Description copied from interface:StringPatternReturns the pattern in (Java) regex format.- Specified by:
asJavaRegexin interfaceStringPattern
-
asLuceneWildcard
Returns the pattern in (Lucene) wildcard format. -
asIndexNameWildcard
Returns the pattern in (IndexNameExpressionResolver) wildcard format. -
hashCode
public int hashCode() -
equals
-