Class TrinoThriftTimestamp
java.lang.Object
io.trino.plugin.thrift.api.datatypes.TrinoThriftTimestamp
- All Implemented Interfaces:
TrinoThriftColumnData
@ThriftStruct
public final class TrinoThriftTimestamp
extends Object
implements TrinoThriftColumnData
Elements of
nulls array determine if a value for a corresponding row is null.
Elements of timestamps array are values for each row represented as the number
of milliseconds passed since 1970-01-01T00:00:00 UTC.
If row is null then value is ignored.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic TrinoThriftBlockstatic TrinoThriftBlockfromRecordSetColumn(RecordSet recordSet, int columnIndex, int totalRecords) boolean[]getNulls()long[]inthashCode()inttoString()
-
Constructor Details
-
TrinoThriftTimestamp
@ThriftConstructor public TrinoThriftTimestamp(@ThriftField(name="nulls") @Nullable boolean[] nulls, @ThriftField(name="timestamps") @Nullable long[] timestamps)
-
-
Method Details
-
getNulls
@Nullable @ThriftField(value=1, requiredness=OPTIONAL) public boolean[] getNulls() -
getTimestamps
@Nullable @ThriftField(value=2, requiredness=OPTIONAL) public long[] getTimestamps() -
toBlock
- Specified by:
toBlockin interfaceTrinoThriftColumnData
-
numberOfRecords
public int numberOfRecords()- Specified by:
numberOfRecordsin interfaceTrinoThriftColumnData
-
equals
-
hashCode
public int hashCode() -
toString
-
fromBlock
-
fromRecordSetColumn
public static TrinoThriftBlock fromRecordSetColumn(RecordSet recordSet, int columnIndex, int totalRecords)
-