Package io.trino.operator.table.json
Record Class JsonTableValueColumn
java.lang.Object
java.lang.Record
io.trino.operator.table.json.JsonTableValueColumn
- All Implemented Interfaces:
JsonTableColumn
public record JsonTableValueColumn(int outputIndex, ResolvedFunction function, IrJsonPath path, long emptyBehavior, int emptyDefaultInput, long errorBehavior, int errorDefaultInput)
extends Record
implements JsonTableColumn
-
Constructor Summary
ConstructorsConstructorDescriptionJsonTableValueColumn(int outputIndex, ResolvedFunction function, IrJsonPath path, long emptyBehavior, int emptyDefaultInput, long errorBehavior, int errorDefaultInput) Creates an instance of aJsonTableValueColumnrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theemptyBehaviorrecord component.intReturns the value of theemptyDefaultInputrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of theerrorBehaviorrecord component.intReturns the value of theerrorDefaultInputrecord component.function()Returns the value of thefunctionrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of theoutputIndexrecord component.path()Returns the value of thepathrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
JsonTableValueColumn
public JsonTableValueColumn(int outputIndex, ResolvedFunction function, IrJsonPath path, long emptyBehavior, int emptyDefaultInput, long errorBehavior, int errorDefaultInput) Creates an instance of aJsonTableValueColumnrecord class.- Parameters:
outputIndex- the value for theoutputIndexrecord componentfunction- the value for thefunctionrecord componentpath- the value for thepathrecord componentemptyBehavior- the value for theemptyBehaviorrecord componentemptyDefaultInput- the value for theemptyDefaultInputrecord componenterrorBehavior- the value for theerrorBehaviorrecord componenterrorDefaultInput- the value for theerrorDefaultInputrecord 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 '=='. -
outputIndex
public int outputIndex()Returns the value of theoutputIndexrecord component.- Returns:
- the value of the
outputIndexrecord component
-
function
Returns the value of thefunctionrecord component.- Returns:
- the value of the
functionrecord component
-
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
emptyBehavior
public long emptyBehavior()Returns the value of theemptyBehaviorrecord component.- Returns:
- the value of the
emptyBehaviorrecord component
-
emptyDefaultInput
public int emptyDefaultInput()Returns the value of theemptyDefaultInputrecord component.- Returns:
- the value of the
emptyDefaultInputrecord component
-
errorBehavior
public long errorBehavior()Returns the value of theerrorBehaviorrecord component.- Returns:
- the value of the
errorBehaviorrecord component
-
errorDefaultInput
public int errorDefaultInput()Returns the value of theerrorDefaultInputrecord component.- Returns:
- the value of the
errorDefaultInputrecord component
-