Class TrinoThriftDate
java.lang.Object
io.trino.plugin.thrift.api.datatypes.TrinoThriftDate
- All Implemented Interfaces:
TrinoThriftColumnData
Elements of
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic TrinoThriftBlockstatic TrinoThriftBlockfromRecordSetColumn(RecordSet recordSet, int columnIndex, int totalRecords) int[]getDates()boolean[]getNulls()inthashCode()inttoString()
-
Constructor Details
-
TrinoThriftDate
@ThriftConstructor public TrinoThriftDate(@ThriftField(name="nulls") @Nullable boolean[] nulls, @ThriftField(name="dates") @Nullable int[] dates)
-
-
Method Details
-
getNulls
@Nullable @ThriftField(value=1, requiredness=OPTIONAL) public boolean[] getNulls() -
getDates
@Nullable @ThriftField(value=2, requiredness=OPTIONAL) public int[] getDates() -
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)
-