@InterfaceAudience.Private public class LossyCounting<T> extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
LossyCounting.LossyCountingListener<T> |
| Constructor and Description |
|---|
LossyCounting(String name,
org.apache.hadoop.conf.Configuration conf,
LossyCounting.LossyCountingListener<T> listener) |
LossyCounting(String name,
double errorRate,
LossyCounting.LossyCountingListener<T> listener) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(T key) |
boolean |
contains(T key) |
long |
getBucketSize() |
long |
getCurrentTerm() |
long |
getDataSize() |
Set<T> |
getElements() |
Future<?> |
getSweepFuture() |
void |
sweep()
sweep low frequency data
|
public LossyCounting(String name, double errorRate, LossyCounting.LossyCountingListener<T> listener)
public LossyCounting(String name, org.apache.hadoop.conf.Configuration conf, LossyCounting.LossyCountingListener<T> listener)
public void add(T key)
public void sweep()
public long getBucketSize()
public long getDataSize()
public boolean contains(T key)
public long getCurrentTerm()
public Future<?> getSweepFuture()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.