Record Class LookupFromIndexOperator.Factory

java.lang.Object
java.lang.Record
org.elasticsearch.xpack.esql.enrich.LookupFromIndexOperator.Factory
All Implemented Interfaces:
Describable, Operator.OperatorFactory
Enclosing class:
LookupFromIndexOperator

public static record LookupFromIndexOperator.Factory(String sessionId, CancellableTask parentTask, int maxOutstandingRequests, int inputChannel, Function<DriverContext,LookupFromIndexService> lookupService, DataType inputDataType, String lookupIndexPattern, String lookupIndex, FieldAttribute.FieldName matchField, List<NamedExpression> loadFields, Source source) extends Record implements Operator.OperatorFactory
  • Constructor Details

    • Factory

      public Factory(String sessionId, CancellableTask parentTask, int maxOutstandingRequests, int inputChannel, Function<DriverContext,LookupFromIndexService> lookupService, DataType inputDataType, String lookupIndexPattern, String lookupIndex, FieldAttribute.FieldName matchField, List<NamedExpression> loadFields, Source source)
      Creates an instance of a Factory record class.
      Parameters:
      sessionId - the value for the sessionId record component
      parentTask - the value for the parentTask record component
      maxOutstandingRequests - the value for the maxOutstandingRequests record component
      inputChannel - the value for the inputChannel record component
      lookupService - the value for the lookupService record component
      inputDataType - the value for the inputDataType record component
      lookupIndexPattern - the value for the lookupIndexPattern record component
      lookupIndex - the value for the lookupIndex record component
      matchField - the value for the matchField record component
      loadFields - the value for the loadFields record component
      source - the value for the source record component
  • Method Details

    • describe

      public String describe()
      Specified by:
      describe in interface Describable
    • get

      public Operator get(DriverContext driverContext)
      Specified by:
      get in interface Operator.OperatorFactory
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • sessionId

      public String sessionId()
      Returns the value of the sessionId record component.
      Returns:
      the value of the sessionId record component
    • parentTask

      public CancellableTask parentTask()
      Returns the value of the parentTask record component.
      Returns:
      the value of the parentTask record component
    • maxOutstandingRequests

      public int maxOutstandingRequests()
      Returns the value of the maxOutstandingRequests record component.
      Returns:
      the value of the maxOutstandingRequests record component
    • inputChannel

      public int inputChannel()
      Returns the value of the inputChannel record component.
      Returns:
      the value of the inputChannel record component
    • lookupService

      Returns the value of the lookupService record component.
      Returns:
      the value of the lookupService record component
    • inputDataType

      public DataType inputDataType()
      Returns the value of the inputDataType record component.
      Returns:
      the value of the inputDataType record component
    • lookupIndexPattern

      public String lookupIndexPattern()
      Returns the value of the lookupIndexPattern record component.
      Returns:
      the value of the lookupIndexPattern record component
    • lookupIndex

      public String lookupIndex()
      Returns the value of the lookupIndex record component.
      Returns:
      the value of the lookupIndex record component
    • matchField

      public FieldAttribute.FieldName matchField()
      Returns the value of the matchField record component.
      Returns:
      the value of the matchField record component
    • loadFields

      public List<NamedExpression> loadFields()
      Returns the value of the loadFields record component.
      Returns:
      the value of the loadFields record component
    • source

      public Source source()
      Returns the value of the source record component.
      Returns:
      the value of the source record component