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.
Modifier and Type | Method and Description |
---|---|
static TgtHllType |
fromOrdinal(int typeId) |
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)
Copyright © 2015–2021 The Apache Software Foundation. All rights reserved.