S
- type of Summarypublic final class CompactSketch<S extends Summary> extends Sketch<S>
PREAMBLE_LONGS, summaryFactory_
Modifier and Type | Method and Description |
---|---|
CompactSketch<S> |
compact()
Converts this sketch to a CompactSketch on the Java heap.
|
int |
getCountLessThanThetaLong(long thetaLong)
Gets the number of hash values less than the given theta expressed as a long.
|
int |
getRetainedEntries() |
TupleSketchIterator<S> |
iterator()
Returns a SketchIterator
|
byte[] |
toByteArray()
This is to serialize a sketch instance to a byte array.
|
getEstimate, getEstimate, getLowerBound, getLowerBound, getSummaryFactory, getTheta, getThetaLong, getUpperBound, getUpperBound, isEmpty, isEstimationMode, toString
public CompactSketch<S> compact()
Sketch
If this sketch is already in compact form this operation returns this.
public int getRetainedEntries()
getRetainedEntries
in class Sketch<S extends Summary>
public int getCountLessThanThetaLong(long thetaLong)
Sketch
getCountLessThanThetaLong
in class Sketch<S extends Summary>
thetaLong
- the given theta as a long between zero and Long.MAX_VALUE.public byte[] toByteArray()
Sketch
As of 3.0.0, serializing an UpdatableSketch is deprecated. This capability will be removed in a future release. Serializing a CompactSketch is not deprecated.
toByteArray
in class Sketch<S extends Summary>
Copyright © 2015–2024 The Apache Software Foundation. All rights reserved.