Class TrinoThriftHyperLogLog
java.lang.Object
io.trino.plugin.thrift.api.datatypes.TrinoThriftHyperLogLog
- All Implemented Interfaces:
TrinoThriftColumnData
@ThriftStruct
public final class TrinoThriftHyperLogLog
extends Object
implements TrinoThriftColumnData
Elements of
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 Summary
Constructors -
Method Summary
-
Constructor Details
-
TrinoThriftHyperLogLog
@ThriftConstructor public TrinoThriftHyperLogLog(@ThriftField(name="nulls") @Nullable boolean[] nulls, @ThriftField(name="sizes") @Nullable int[] sizes, @ThriftField(name="bytes") @Nullable byte[] bytes)
-
-
Method Details
-
getNulls
@Nullable @ThriftField(value=1, requiredness=OPTIONAL) public boolean[] getNulls() -
getSizes
@Nullable @ThriftField(value=2, requiredness=OPTIONAL) public int[] getSizes() -
getBytes
@Nullable @ThriftField(value=3, requiredness=OPTIONAL) public byte[] getBytes() -
toBlock
- Specified by:
toBlockin interfaceTrinoThriftColumnData
-
numberOfRecords
public int numberOfRecords()- Specified by:
numberOfRecordsin interfaceTrinoThriftColumnData
-
equals
-
hashCode
public int hashCode() -
toString
-
fromBlock
-