| Constructor and Description |
|---|
IncrementalResetCountMin4(com.typesafe.config.Config config) |
| Modifier and Type | Method and Description |
|---|---|
void |
ensureCapacity(long maximumSize)
Increases the capacity of this FrequencySketch instance, if necessary, to ensure that
it can accurately estimate the popularity of elements given the maximum size of the cache.
|
int |
frequency(long e)
Returns the estimated number of occurrences of an element, up to the maximum (15).
|
void |
increment(long e)
Increments the popularity of the element if it does not exceed the maximum (15).
|
public IncrementalResetCountMin4(com.typesafe.config.Config config)
public void ensureCapacity(@Nonnegative long maximumSize)
maximumSize - the maximum size of the cache@Nonnegative public int frequency(long e)
public void increment(long e)