Package | Description |
---|---|
org.apache.datasketches.hll |
The DataSketches™ HLL sketch family package
HllSketch and Union
are the public facing classes of this high performance implementation of Phillipe Flajolet's
HyperLogLog algorithm[1] but with significantly improved error behavior and important features that can be
essential for large production systems that must handle massive data. |
Modifier and Type | Field and Description |
---|---|
static TgtHllType |
HllSketch.DEFAULT_HLL_TYPE
The default HLL-TYPE is HLL_4
|
Modifier and Type | Method and Description |
---|---|
static TgtHllType |
TgtHllType.fromOrdinal(int typeId)
Convert the typeId to the enum type
|
TgtHllType |
HllSketch.getTgtHllType() |
TgtHllType |
Union.getTgtHllType() |
static TgtHllType |
TgtHllType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TgtHllType[] |
TgtHllType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
HllSketch |
HllSketch.copyAs(TgtHllType tgtHllType)
Return a deep copy of this sketch onto the Java heap with the specified TgtHllType.
|
static int |
HllSketch.getMaxUpdatableSerializationBytes(int lgConfigK,
TgtHllType tgtHllType)
Returns the maximum size in bytes that this sketch can grow to given lgConfigK.
|
HllSketch |
Union.getResult(TgtHllType tgtHllType)
Return the result of this union operator with the specified
TgtHllType |
Constructor and Description |
---|
HllSketch(int lgConfigK,
TgtHllType tgtHllType)
Constructs a new on-heap sketch with the type of HLL sketch to configure.
|
HllSketch(int lgConfigK,
TgtHllType tgtHllType,
org.apache.datasketches.memory.WritableMemory dstMem)
Constructs a new sketch with the type of HLL sketch to configure and the given
WritableMemory as the destination for the sketch.
|
Copyright © 2015–2024 The Apache Software Foundation. All rights reserved.