@ThriftStruct public final class PrestoThriftBigintArray extends Object implements PrestoThriftColumnData
nulls array determine if a value for a corresponding row is null.
Each elements of sizes array contains the number of elements in the corresponding values array.
If row is null then the corresponding element in sizes is ignored.
values is a bigint block containing array elements one after another for all rows.
The total number of elements in bigint block must be equal to the sum of all sizes.| Constructor and Description |
|---|
PrestoThriftBigintArray(boolean[] nulls,
int[] sizes,
PrestoThriftBigint values) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static PrestoThriftBlock |
fromBlock(Block block) |
boolean[] |
getNulls() |
int[] |
getSizes() |
PrestoThriftBigint |
getValues() |
int |
hashCode() |
int |
numberOfRecords() |
Block |
toBlock(Type desiredType) |
String |
toString() |
@ThriftConstructor public PrestoThriftBigintArray(@ThriftField(name="nulls") @Nullable boolean[] nulls, @ThriftField(name="sizes") @Nullable int[] sizes, @ThriftField(name="values") @Nullable PrestoThriftBigint values)
@Nullable @ThriftField(value=1, requiredness=OPTIONAL) public boolean[] getNulls()
@Nullable @ThriftField(value=2, requiredness=OPTIONAL) public int[] getSizes()
@Nullable @ThriftField(value=3, requiredness=OPTIONAL) public PrestoThriftBigint getValues()
public Block toBlock(Type desiredType)
toBlock in interface PrestoThriftColumnDatapublic int numberOfRecords()
numberOfRecords in interface PrestoThriftColumnDatapublic static PrestoThriftBlock fromBlock(Block block)
Copyright © 2012–2023. All rights reserved.