Class RLikePatternList
java.lang.Object
org.elasticsearch.xpack.esql.core.expression.predicate.regex.AbstractStringPattern
org.elasticsearch.xpack.esql.core.expression.predicate.regex.RLikePatternList
- All Implemented Interfaces:
Writeable,StringPattern
-
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 a Java regex that matches any of the patterns in the list.org.apache.lucene.util.automaton.AutomatoncreateAutomaton(boolean ignoreCase) Creates an automaton that matches any of the patterns in the list.booleaninthashCode()pattern()Returns a string that matches any of the patterns in the list.voidwriteTo(StreamOutput out) Methods inherited from class org.elasticsearch.xpack.esql.core.expression.predicate.regex.AbstractStringPattern
exactMatch, matchesAll
-
Constructor Details
-
RLikePatternList
-
RLikePatternList
- Throws:
IOException
-
-
Method Details
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
patternList
-
createAutomaton
public org.apache.lucene.util.automaton.Automaton createAutomaton(boolean ignoreCase) Creates an automaton that matches any of the patterns in the list. We create a single automaton that is the union of all individual automatons to improve performance- Specified by:
createAutomatonin classAbstractStringPattern
-
asJavaRegex
Returns a Java regex that matches any of the patterns in the list. The patterns are joined with the '|' operator to create a single regex.- Specified by:
asJavaRegexin interfaceStringPattern
-
hashCode
public int hashCode() -
equals
-
pattern
Returns a string that matches any of the patterns in the list. The patterns are joined with the '|' operator to create a single regex string.- Specified by:
patternin interfaceStringPattern
-