@ThriftStruct public final class PrestoThriftTimestamp extends Object implements PrestoThriftColumnData
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 and Description |
|---|
PrestoThriftTimestamp(boolean[] nulls,
long[] timestamps) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static PrestoThriftBlock |
fromBlock(Block block) |
static PrestoThriftBlock |
fromRecordSetColumn(RecordSet recordSet,
int columnIndex,
int totalRecords) |
boolean[] |
getNulls() |
long[] |
getTimestamps() |
int |
hashCode() |
int |
numberOfRecords() |
Block |
toBlock(Type desiredType) |
String |
toString() |
@Nullable @ThriftField(value=1, requiredness=OPTIONAL) public boolean[] getNulls()
@Nullable @ThriftField(value=2, requiredness=OPTIONAL) public long[] getTimestamps()
public Block toBlock(Type desiredType)
toBlock in interface PrestoThriftColumnDatapublic int numberOfRecords()
numberOfRecords in interface PrestoThriftColumnDatapublic static PrestoThriftBlock fromBlock(Block block)
public static PrestoThriftBlock fromRecordSetColumn(RecordSet recordSet, int columnIndex, int totalRecords)
Copyright © 2012–2024. All rights reserved.