@NotThreadSafe public class PrivateLpcaSketch extends Object
The final sketch (and the resulting cardinality estimate) is epsilon-differentially private, where epsilon = epsilonThreshold + epsilonRandomizedResponse.
| Constructor and Description |
|---|
PrivateLpcaSketch(HyperLogLog hll,
double epsilonThreshold,
double epsilonRandomizedResponse) |
PrivateLpcaSketch(HyperLogLog hll,
double epsilonThreshold,
double epsilonRandomizedResponse,
RandomizationStrategy randomizationStrategy) |
PrivateLpcaSketch(io.airlift.slice.Slice serialized) |
PrivateLpcaSketch(io.airlift.slice.Slice serialized,
RandomizationStrategy randomizationStrategy) |
| Modifier and Type | Method and Description |
|---|---|
long |
cardinality() |
int |
estimatedSerializedSize() |
int |
getNumberOfBuckets() |
int |
getThreshold() |
io.airlift.slice.Slice |
serialize() |
void |
update(HyperLogLog hllOther)
Updates current sketch by adding data from a second HyperLogLog
|
public PrivateLpcaSketch(HyperLogLog hll, double epsilonThreshold, double epsilonRandomizedResponse)
public PrivateLpcaSketch(io.airlift.slice.Slice serialized)
public PrivateLpcaSketch(HyperLogLog hll, double epsilonThreshold, double epsilonRandomizedResponse, RandomizationStrategy randomizationStrategy)
public PrivateLpcaSketch(io.airlift.slice.Slice serialized,
RandomizationStrategy randomizationStrategy)
public long cardinality()
public int estimatedSerializedSize()
public int getNumberOfBuckets()
public int getThreshold()
public io.airlift.slice.Slice serialize()
public void update(HyperLogLog hllOther)
hllOther - HyperLogLog of data to add to current sketchCopyright © 2010–2024 Airlift. All rights reserved.