public class HLLCV1 extends HyperLogLogCollector
| Modifier and Type | Field and Description |
|---|---|
static int |
HEADER_NUM_BYTES |
static int |
MAX_OVERFLOW_REGISTER_BYTE |
static int |
MAX_OVERFLOW_VALUE_BYTE |
static int |
NUM_BYTES_FOR_DENSE_STORAGE |
static int |
NUM_NON_ZERO_REGISTERS_BYTE |
static int |
REGISTER_OFFSET_BYTE |
static byte |
VERSION
Header:
Byte 0: version
Byte 1: registerOffset
Byte 2-3: numNonZeroRegisters
Byte 4: maxOverflowValue
Byte 5-6: maxOverflowRegister
|
BITS_FOR_BUCKETS, CORRECTION_PARAMETER, DENSE_THRESHOLD, HIGH_CORRECTION_THRESHOLD, LOW_CORRECTION_THRESHOLD, NUM_BUCKETS, NUM_BYTES_FOR_BUCKETS| Modifier and Type | Method and Description |
|---|---|
short |
getMaxOverflowRegister() |
byte |
getMaxOverflowValue() |
int |
getNumBytesForDenseStorage() |
int |
getNumHeaderBytes() |
short |
getNumNonZeroRegisters() |
int |
getPayloadBytePosition() |
int |
getPayloadBytePosition(ByteBuffer buffer) |
byte |
getRegisterOffset() |
byte |
getVersion() |
void |
setMaxOverflowRegister(ByteBuffer buffer,
short register) |
void |
setMaxOverflowRegister(short register) |
void |
setMaxOverflowValue(byte value) |
void |
setMaxOverflowValue(ByteBuffer buffer,
byte value) |
void |
setNumNonZeroRegisters(ByteBuffer buffer,
short numNonZeroRegisters) |
void |
setNumNonZeroRegisters(short numNonZeroRegisters) |
void |
setRegisterOffset(byte registerOffset) |
void |
setRegisterOffset(ByteBuffer buffer,
byte registerOffset) |
void |
setVersion(ByteBuffer buffer) |
add, add, applyCorrection, compareTo, equals, estimateByteBuffer, estimateCardinality, fold, fold, getInitPosition, getLatestNumBytesForDenseStorage, getStorageBuffer, hashCode, makeCollector, makeCollectorSharingStorage, makeEmptyVersionedByteArray, makeLatestCollector, toByteArray, toByteBuffer, toStringpublic static final byte VERSION
public static final int REGISTER_OFFSET_BYTE
public static final int NUM_NON_ZERO_REGISTERS_BYTE
public static final int MAX_OVERFLOW_VALUE_BYTE
public static final int MAX_OVERFLOW_REGISTER_BYTE
public static final int HEADER_NUM_BYTES
public static final int NUM_BYTES_FOR_DENSE_STORAGE
public byte getVersion()
getVersion in class HyperLogLogCollectorpublic void setVersion(ByteBuffer buffer)
setVersion in class HyperLogLogCollectorpublic byte getRegisterOffset()
getRegisterOffset in class HyperLogLogCollectorpublic void setRegisterOffset(byte registerOffset)
setRegisterOffset in class HyperLogLogCollectorpublic void setRegisterOffset(ByteBuffer buffer, byte registerOffset)
setRegisterOffset in class HyperLogLogCollectorpublic short getNumNonZeroRegisters()
getNumNonZeroRegisters in class HyperLogLogCollectorpublic void setNumNonZeroRegisters(short numNonZeroRegisters)
setNumNonZeroRegisters in class HyperLogLogCollectorpublic void setNumNonZeroRegisters(ByteBuffer buffer, short numNonZeroRegisters)
setNumNonZeroRegisters in class HyperLogLogCollectorpublic byte getMaxOverflowValue()
getMaxOverflowValue in class HyperLogLogCollectorpublic void setMaxOverflowValue(byte value)
setMaxOverflowValue in class HyperLogLogCollectorpublic void setMaxOverflowValue(ByteBuffer buffer, byte value)
setMaxOverflowValue in class HyperLogLogCollectorpublic short getMaxOverflowRegister()
getMaxOverflowRegister in class HyperLogLogCollectorpublic void setMaxOverflowRegister(short register)
setMaxOverflowRegister in class HyperLogLogCollectorpublic void setMaxOverflowRegister(ByteBuffer buffer, short register)
setMaxOverflowRegister in class HyperLogLogCollectorpublic int getNumHeaderBytes()
getNumHeaderBytes in class HyperLogLogCollectorpublic int getNumBytesForDenseStorage()
getNumBytesForDenseStorage in class HyperLogLogCollectorpublic int getPayloadBytePosition()
getPayloadBytePosition in class HyperLogLogCollectorpublic int getPayloadBytePosition(ByteBuffer buffer)
getPayloadBytePosition in class HyperLogLogCollectorCopyright © 2011–2017. All rights reserved.