@InterfaceAudience.Private public class LossyCounting extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
LossyCounting.LossyCountingListener |
Constructor and Description |
---|
LossyCounting(double errorRate,
LossyCounting.LossyCountingListener listener) |
LossyCounting(LossyCounting.LossyCountingListener listener) |
Modifier and Type | Method and Description |
---|---|
void |
add(String key) |
boolean |
contains(String key) |
long |
getBucketSize() |
long |
getCurrentTerm() |
long |
getDataSize() |
Set<String> |
getElements() |
public LossyCounting(double errorRate, LossyCounting.LossyCountingListener listener)
public LossyCounting(LossyCounting.LossyCountingListener listener)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.