Record Class LoadFromPageEvaluator.Factory

java.lang.Object
java.lang.Record
org.elasticsearch.compute.expression.LoadFromPageEvaluator.Factory
All Implemented Interfaces:
ExpressionEvaluator.Factory
Enclosing class:
LoadFromPageEvaluator

public static record LoadFromPageEvaluator.Factory(int channel) extends Record implements ExpressionEvaluator.Factory
  • Constructor Details

    • Factory

      public Factory(int channel)
      Creates an instance of a Factory record class.
      Parameters:
      channel - the value for the channel record component
  • Method Details

    • get

      public ExpressionEvaluator get(DriverContext driverContext)
      Specified by:
      get in interface ExpressionEvaluator.Factory
    • toString

      public 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
    • eagerEvalSafeInLazy

      public boolean eagerEvalSafeInLazy()
      Description copied from interface: ExpressionEvaluator.Factory
      true if it is safe and fast to evaluate this expression eagerly in ExpressionEvaluators that need to be lazy, like CASE. This defaults to false, but expressions that evaluate quickly and can not produce warnings may override this to true to get a significant speed-up in CASE-like operations.
      Specified by:
      eagerEvalSafeInLazy in interface ExpressionEvaluator.Factory
    • 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. All components in this record class 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.
    • channel

      public int channel()
      Returns the value of the channel record component.
      Returns:
      the value of the channel record component