@ThriftStruct public final class PrestoThriftHyperLogLog extends Object implements PrestoThriftColumnData
nulls array determine if a value for a corresponding row is null.
Each elements of sizes array contains the length in bytes for the corresponding element.
If row is null then the corresponding element in sizes is ignored.
bytes array contains encoded byte values for HyperLogLog representation as defined in
Airlift specification: href="https://github.com/airlift/airlift/blob/master/stats/docs/hll.md
Values for all rows are written to bytes array one after another.
The total number of bytes must be equal to the sum of all sizes.| Constructor and Description |
|---|
PrestoThriftHyperLogLog(boolean[] nulls,
int[] sizes,
byte[] bytes) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static PrestoThriftBlock |
fromBlock(Block block) |
byte[] |
getBytes() |
boolean[] |
getNulls() |
int[] |
getSizes() |
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[] getSizes()
@Nullable @ThriftField(value=3, requiredness=OPTIONAL) public byte[] getBytes()
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.