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 | Constructor and Description |
---|---|
protected |
HLLCV1() |
protected |
HLLCV1(ByteBuffer buffer) |
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, makeEmptyVersionedByteArray, makeLatestCollector, toByteArray, toByteBuffer, toString
public 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
protected HLLCV1()
protected HLLCV1(ByteBuffer buffer)
public byte getVersion()
getVersion
in class HyperLogLogCollector
public void setVersion(ByteBuffer buffer)
setVersion
in class HyperLogLogCollector
public byte getRegisterOffset()
getRegisterOffset
in class HyperLogLogCollector
public void setRegisterOffset(byte registerOffset)
setRegisterOffset
in class HyperLogLogCollector
public void setRegisterOffset(ByteBuffer buffer, byte registerOffset)
setRegisterOffset
in class HyperLogLogCollector
public short getNumNonZeroRegisters()
getNumNonZeroRegisters
in class HyperLogLogCollector
public void setNumNonZeroRegisters(short numNonZeroRegisters)
setNumNonZeroRegisters
in class HyperLogLogCollector
public void setNumNonZeroRegisters(ByteBuffer buffer, short numNonZeroRegisters)
setNumNonZeroRegisters
in class HyperLogLogCollector
public byte getMaxOverflowValue()
getMaxOverflowValue
in class HyperLogLogCollector
public void setMaxOverflowValue(byte value)
setMaxOverflowValue
in class HyperLogLogCollector
public void setMaxOverflowValue(ByteBuffer buffer, byte value)
setMaxOverflowValue
in class HyperLogLogCollector
public short getMaxOverflowRegister()
getMaxOverflowRegister
in class HyperLogLogCollector
public void setMaxOverflowRegister(short register)
setMaxOverflowRegister
in class HyperLogLogCollector
public void setMaxOverflowRegister(ByteBuffer buffer, short register)
setMaxOverflowRegister
in class HyperLogLogCollector
public int getNumHeaderBytes()
getNumHeaderBytes
in class HyperLogLogCollector
public int getNumBytesForDenseStorage()
getNumBytesForDenseStorage
in class HyperLogLogCollector
public int getPayloadBytePosition()
getPayloadBytePosition
in class HyperLogLogCollector
public int getPayloadBytePosition(ByteBuffer buffer)
getPayloadBytePosition
in class HyperLogLogCollector
Copyright © 2011–2015. All rights reserved.