S - type of Summarypublic class CompactSketch<S extends Summary> extends Sketch<S>
PREAMBLE_LONGS| Modifier and Type | Method and Description |
|---|---|
CompactSketch<S> |
compact()
Converts this sketch to a CompactSketch on the Java heap.
|
int |
getRetainedEntries() |
SketchIterator<S> |
iterator()
Returns a SketchIterator
|
byte[] |
toByteArray()
This is to serialize an instance to a byte array.
|
getEstimate, getEstimate, getLowerBound, getLowerBound, getTheta, getThetaLong, getUpperBound, getUpperBound, isEmpty, isEstimationMode, toStringpublic CompactSketch<S> compact()
SketchIf this sketch is already in compact form this operation returns this.
public int getRetainedEntries()
getRetainedEntries in class Sketch<S extends Summary>public byte[] toByteArray()
SketchtoByteArray in class Sketch<S extends Summary>Copyright © 2015–2021 The Apache Software Foundation. All rights reserved.