public enum TgtHllType extends Enum<TgtHllType>
These three target types are isomorphic representations of the same underlying HLL algorithm. Thus, given the same value of lgConfigK and the same input, all three HLL target types will produce identical estimates and have identical error distributions.
The memory (and also the serialization) of the sketch during this early warmup phase starts out very small (8 bytes, when empty) and then grows in increments of 4 bytes as required until the full HLL array is allocated. This transition point occurs at about 10% of K for sketches where lgConfigK is > 8.
Enum Constant and Description |
---|
HLL_4
An HLL sketch with a bin size of 4 bits
|
HLL_6
An HLL sketch with a bin size of 6 bits
|
HLL_8
An Hll Sketch with a bin size of 8 bits
|
Modifier and Type | Method and Description |
---|---|
static TgtHllType |
fromOrdinal(int typeId)
Convert the typeId to the enum type
|
static TgtHllType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TgtHllType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TgtHllType HLL_4
public static final TgtHllType HLL_6
public static final TgtHllType HLL_8
public static TgtHllType[] values()
for (TgtHllType c : TgtHllType.values()) System.out.println(c);
public static TgtHllType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static final TgtHllType fromOrdinal(int typeId)
typeId
- the given typeIdCopyright © 2015–2024 The Apache Software Foundation. All rights reserved.