Package io.trino.plugin.thrift.api
Class TrinoThriftBlock
java.lang.Object
io.trino.plugin.thrift.api.TrinoThriftBlock
-
Constructor Summary
ConstructorsConstructorDescriptionTrinoThriftBlock(TrinoThriftInteger integerData, TrinoThriftBigint bigintData, TrinoThriftDouble doubleData, TrinoThriftVarchar varcharData, TrinoThriftBoolean booleanData, TrinoThriftDate dateData, TrinoThriftTimestamp timestampData, TrinoThriftJson jsonData, TrinoThriftHyperLogLog hyperLogLogData, TrinoThriftBigintArray bigintArrayData) -
Method Summary
Modifier and TypeMethodDescriptionstatic TrinoThriftBlockbigintArrayData(TrinoThriftBigintArray bigintArrayData) static TrinoThriftBlockbigintData(TrinoThriftBigint bigintData) static TrinoThriftBlockbooleanData(TrinoThriftBoolean booleanData) static TrinoThriftBlockdateData(TrinoThriftDate dateData) static TrinoThriftBlockdoubleData(TrinoThriftDouble doubleData) booleanstatic TrinoThriftBlockstatic TrinoThriftBlockfromNativeValue(Object trinoNativeValue, Type type) static TrinoThriftBlockfromRecordSetColumn(RecordSet recordSet, int columnIndex, int totalRecords) inthashCode()static TrinoThriftBlockhyperLogLogData(TrinoThriftHyperLogLog hyperLogLogData) static TrinoThriftBlockintegerData(TrinoThriftInteger integerData) static TrinoThriftBlockjsonData(TrinoThriftJson jsonData) intstatic TrinoThriftBlocktimestampData(TrinoThriftTimestamp timestampData) toString()static TrinoThriftBlockvarcharData(TrinoThriftVarchar varcharData)
-
Constructor Details
-
TrinoThriftBlock
@ThriftConstructor public TrinoThriftBlock(@Nullable TrinoThriftInteger integerData, @Nullable TrinoThriftBigint bigintData, @Nullable TrinoThriftDouble doubleData, @Nullable TrinoThriftVarchar varcharData, @Nullable TrinoThriftBoolean booleanData, @Nullable TrinoThriftDate dateData, @Nullable TrinoThriftTimestamp timestampData, @Nullable TrinoThriftJson jsonData, @Nullable TrinoThriftHyperLogLog hyperLogLogData, @Nullable TrinoThriftBigintArray bigintArrayData)
-
-
Method Details
-
getIntegerData
-
getBigintData
-
getDoubleData
-
getVarcharData
-
getBooleanData
-
getDateData
-
getTimestampData
@Nullable @ThriftField(value=7, requiredness=OPTIONAL) public TrinoThriftTimestamp getTimestampData() -
getJsonData
-
getHyperLogLogData
@Nullable @ThriftField(value=9, requiredness=OPTIONAL) public TrinoThriftHyperLogLog getHyperLogLogData() -
getBigintArrayData
@Nullable @ThriftField(value=10, requiredness=OPTIONAL) public TrinoThriftBigintArray getBigintArrayData() -
toBlock
-
numberOfRecords
public int numberOfRecords() -
equals
-
hashCode
public int hashCode() -
toString
-
integerData
-
bigintData
-
doubleData
-
varcharData
-
booleanData
-
dateData
-
timestampData
-
jsonData
-
hyperLogLogData
-
bigintArrayData
-
fromNativeValue
-
fromBlock
-
fromRecordSetColumn
public static TrinoThriftBlock fromRecordSetColumn(RecordSet recordSet, int columnIndex, int totalRecords)
-