Class RLikePattern
java.lang.Object
org.elasticsearch.xpack.esql.core.expression.predicate.regex.AbstractStringPattern
org.elasticsearch.xpack.esql.core.expression.predicate.regex.RLikePattern
- All Implemented Interfaces:
Writeable,StringPattern,NodeStringRenderable
-
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 (Java) regex format.protected org.apache.lucene.util.automaton.AutomatondoCreateAutomaton(boolean ignoreCase) booleaninthashCode()voidnodeString(StringBuilder sb, Node.NodeStringFormat format, NodeStringMapper mapper) Renders the regex quoted, routing maximal literal runs throughmapper.columnwhile passing regex metacharacters (. * + ? ( ) [ ] {@literal { } } | ^ $ \) through unchanged.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
createAutomaton, exactMatch, extractPrefix, extractSuffix, matchesAll
-
Constructor Details
-
RLikePattern
-
RLikePattern
- Throws:
IOException
-
-
Method Details
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
doCreateAutomaton
protected org.apache.lucene.util.automaton.Automaton doCreateAutomaton(boolean ignoreCase) - Specified by:
doCreateAutomatonin classAbstractStringPattern
-
asJavaRegex
Description copied from interface:StringPatternReturns the pattern in (Java) regex format.- Specified by:
asJavaRegexin interfaceStringPattern
-
equals
-
hashCode
public int hashCode() -
pattern
Description copied from interface:StringPatternReturns the pattern as it was defined by the user.- Specified by:
patternin interfaceStringPattern
-
nodeString
Renders the regex quoted, routing maximal literal runs throughmapper.columnwhile passing regex metacharacters (. * + ? ( ) [ ] {@literal { } } | ^ $ \) through unchanged. Every non-metacharacter ends up inside acolumncall, so no literal content survives anonymization; underNodeStringMapper.IDENTITYthis reproduces the raw regex.- Specified by:
nodeStringin interfaceNodeStringRenderable- Overrides:
nodeStringin classAbstractStringPattern
-