Package io.trino.operator.table.json
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 treeouter- the parent-child relationship between the input relation and the processingPlan resulterrorOnError- the error behavior: true for ERROR ON ERROR, false for EMPTY ON ERRORparametersType- 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 Summary
ConstructorsConstructorDescriptionJsonTableFunctionHandle(JsonTablePlanNode processingPlan, boolean outer, boolean errorOnError, Type parametersType, Type[] outputTypes) Creates an instance of aJsonTableFunctionHandlerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of theerrorOnErrorrecord component.final inthashCode()Returns a hash code value for this object.booleanouter()Returns the value of theouterrecord component.Type[]Returns the value of theoutputTypesrecord component.Returns the value of theparametersTyperecord component.Returns the value of theprocessingPlanrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
JsonTableFunctionHandle
public JsonTableFunctionHandle(JsonTablePlanNode processingPlan, boolean outer, boolean errorOnError, Type parametersType, Type[] outputTypes) Creates an instance of aJsonTableFunctionHandlerecord class.- Parameters:
processingPlan- the value for theprocessingPlanrecord componentouter- the value for theouterrecord componenterrorOnError- the value for theerrorOnErrorrecord componentparametersType- the value for theparametersTyperecord componentoutputTypes- the value for theoutputTypesrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
processingPlan
Returns the value of theprocessingPlanrecord component.- Returns:
- the value of the
processingPlanrecord component
-
outer
public boolean outer()Returns the value of theouterrecord component.- Returns:
- the value of the
outerrecord component
-
errorOnError
public boolean errorOnError()Returns the value of theerrorOnErrorrecord component.- Returns:
- the value of the
errorOnErrorrecord component
-
parametersType
Returns the value of theparametersTyperecord component.- Returns:
- the value of the
parametersTyperecord component
-
outputTypes
Returns the value of theoutputTypesrecord component.- Returns:
- the value of the
outputTypesrecord component
-