@ThriftStruct public final class PrestoThriftDate extends Object implements PrestoThriftColumnData
nulls array determine if a value for a corresponding row is null.
Elements of dates array are date values for each row represented as the number
of days passed since 1970-01-01.
If row is null then value is ignored.| Constructor and Description |
|---|
PrestoThriftDate(boolean[] nulls,
int[] dates) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static PrestoThriftBlock |
fromBlock(Block block) |
static PrestoThriftBlock |
fromRecordSetColumn(RecordSet recordSet,
int columnIndex,
int totalRecords) |
int[] |
getDates() |
boolean[] |
getNulls() |
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 int[] getDates()
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.