Record Class Grok.Parser
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.esql.plan.logical.Grok.Parser
- All Implemented Interfaces:
NodeStringRenderable
- Enclosing class:
Grok
public static record Grok.Parser(String pattern, Grok grok)
extends Record
implements NodeStringRenderable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.grok()Returns the value of thegrokrecord component.inthashCode()Returns a hash code value for this object.voidnodeString(StringBuilder sb, Node.NodeStringFormat format, NodeStringMapper mapper) Single render path for the parser.pattern()Returns the value of thepatternrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
Parser
Creates an instance of aParserrecord class.- Parameters:
pattern- the value for thepatternrecord componentgrok- the value for thegrokrecord component
-
-
Method Details
-
extractedFields
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
nodeString
Single render path for the parser. UnderNodeStringMapper.IDENTITYthis is byte-identical to the legacytoString(); under an anonymizing mapper the capture names route through the mapper while the Grok library identifiers, type suffixes, and%{...}structure stay verbatim.- Specified by:
nodeStringin interfaceNodeStringRenderable
-
pattern
Returns the value of thepatternrecord component.- Returns:
- the value of the
patternrecord component
-
grok
Returns the value of thegrokrecord component.- Returns:
- the value of the
grokrecord component
-