Record Class GrokEvaluatorExtracter.Factory
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.esql.evaluator.command.GrokEvaluatorExtracter.Factory
- All Implemented Interfaces:
ColumnExtractOperator.Evaluator.Factory
- Enclosing class:
GrokEvaluatorExtracter
public static record GrokEvaluatorExtracter.Factory(Grok parser, String pattern, Map<String,Integer> keyToBlock, Map<String,ElementType> types)
extends Record
implements ColumnExtractOperator.Evaluator.Factory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(DriverContext driverContext) describe()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thekeyToBlockrecord component.parser()Returns the value of theparserrecord component.pattern()Returns the value of thepatternrecord component.final StringtoString()Returns a string representation of this record class.types()Returns the value of thetypesrecord component.
-
Constructor Details
-
Factory
public Factory(Grok parser, String pattern, Map<String, Integer> keyToBlock, Map<String, ElementType> types) Creates an instance of aFactoryrecord class.- Parameters:
parser- the value for theparserrecord componentpattern- the value for thepatternrecord componentkeyToBlock- the value for thekeyToBlockrecord componenttypes- the value for thetypesrecord component
-
-
Method Details
-
create
- Specified by:
createin interfaceColumnExtractOperator.Evaluator.Factory
-
describe
- Specified by:
describein interfaceColumnExtractOperator.Evaluator.Factory
-
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. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
parser
Returns the value of theparserrecord component.- Returns:
- the value of the
parserrecord component
-
pattern
Returns the value of thepatternrecord component.- Returns:
- the value of the
patternrecord component
-
keyToBlock
Returns the value of thekeyToBlockrecord component.- Returns:
- the value of the
keyToBlockrecord component
-
types
Returns the value of thetypesrecord component.- Returns:
- the value of the
typesrecord component
-