Record Class JsonTable.JsonTableFunctionHandle

java.lang.Object
java.lang.Record
io.trino.operator.table.json.JsonTable.JsonTableFunctionHandle
Record Components:
processingPlan - the root of the processing plan tree
outer - the parent-child relationship between the input relation and the processingPlan result
errorOnError - the error behavior: true for ERROR ON ERROR, false for EMPTY ON ERROR
parametersType - type of the row containing JSON path parameters for the root JSON path. The function expects the parameters row in the channel 1. Other channels in the input page correspond to JSON context item (channel 0), and default values for the value columns. Each value column in the processingPlan knows the indexes of its default channels.
outputTypes - types of the proper columns produced by the function
All Implemented Interfaces:
ConnectorTableFunctionHandle
Enclosing class:
JsonTable

public static record JsonTable.JsonTableFunctionHandle(JsonTablePlanNode processingPlan, boolean outer, boolean errorOnError, Type parametersType, Type[] outputTypes) extends Record implements ConnectorTableFunctionHandle
This class comprises all information necessary to execute the json_table function:
  • Constructor Details

    • JsonTableFunctionHandle

      public JsonTableFunctionHandle(JsonTablePlanNode processingPlan, boolean outer, boolean errorOnError, Type parametersType, Type[] outputTypes)
      Creates an instance of a JsonTableFunctionHandle record class.
      Parameters:
      processingPlan - the value for the processingPlan record component
      outer - the value for the outer record component
      errorOnError - the value for the errorOnError record component
      parametersType - the value for the parametersType record component
      outputTypes - the value for the outputTypes record component
  • Method Details

    • 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.
    • processingPlan

      public JsonTablePlanNode processingPlan()
      Returns the value of the processingPlan record component.
      Returns:
      the value of the processingPlan record component
    • outer

      public boolean outer()
      Returns the value of the outer record component.
      Returns:
      the value of the outer record component
    • errorOnError

      public boolean errorOnError()
      Returns the value of the errorOnError record component.
      Returns:
      the value of the errorOnError record component
    • parametersType

      public Type parametersType()
      Returns the value of the parametersType record component.
      Returns:
      the value of the parametersType record component
    • outputTypes

      public Type[] outputTypes()
      Returns the value of the outputTypes record component.
      Returns:
      the value of the outputTypes record component