Class TrinoThriftInteger
java.lang.Object
io.trino.plugin.thrift.api.datatypes.TrinoThriftInteger
- All Implemented Interfaces:
TrinoThriftColumnData
Elements of
nulls array determine if a value for a corresponding row is null.
Elements of ints array are values for each row. 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[]getInts()boolean[]getNulls()inthashCode()inttoString()
-
Constructor Details
-
TrinoThriftInteger
@ThriftConstructor public TrinoThriftInteger(@ThriftField(name="nulls") @Nullable boolean[] nulls, @ThriftField(name="ints") @Nullable int[] ints)
-
-
Method Details
-
getNulls
@Nullable @ThriftField(value=1, requiredness=OPTIONAL) public boolean[] getNulls() -
getInts
@Nullable @ThriftField(value=2, requiredness=OPTIONAL) public int[] getInts() -
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)
-