Package io.trino.operator.table.json
Record Class JsonTableQueryColumn
java.lang.Object
java.lang.Record
io.trino.operator.table.json.JsonTableQueryColumn
- All Implemented Interfaces:
JsonTableColumn
public record JsonTableQueryColumn(int outputIndex, ResolvedFunction function, IrJsonPath path, long wrapperBehavior, long emptyBehavior, long errorBehavior)
extends Record
implements JsonTableColumn
This representation does not contain all properties of the column as specified in json_table invocation.
Certain properties are handled by the output function which is applied later.
These are: output format and quotes behavior.
-
Constructor Summary
ConstructorsConstructorDescriptionJsonTableQueryColumn(int outputIndex, ResolvedFunction function, IrJsonPath path, long wrapperBehavior, long emptyBehavior, long errorBehavior) Creates an instance of aJsonTableQueryColumnrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theemptyBehaviorrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of theerrorBehaviorrecord 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.longReturns the value of thewrapperBehaviorrecord component.
-
Constructor Details
-
JsonTableQueryColumn
public JsonTableQueryColumn(int outputIndex, ResolvedFunction function, IrJsonPath path, long wrapperBehavior, long emptyBehavior, long errorBehavior) Creates an instance of aJsonTableQueryColumnrecord class.- Parameters:
outputIndex- the value for theoutputIndexrecord componentfunction- the value for thefunctionrecord componentpath- the value for thepathrecord componentwrapperBehavior- the value for thewrapperBehaviorrecord componentemptyBehavior- the value for theemptyBehaviorrecord componenterrorBehavior- the value for theerrorBehaviorrecord 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
-
wrapperBehavior
public long wrapperBehavior()Returns the value of thewrapperBehaviorrecord component.- Returns:
- the value of the
wrapperBehaviorrecord component
-
emptyBehavior
public long emptyBehavior()Returns the value of theemptyBehaviorrecord component.- Returns:
- the value of the
emptyBehaviorrecord component
-
errorBehavior
public long errorBehavior()Returns the value of theerrorBehaviorrecord component.- Returns:
- the value of the
errorBehaviorrecord component
-