conservative, step, table, tableMask| Constructor and Description |
|---|
PeriodicResetCountMin4(Config config) |
| Modifier and Type | Method and Description |
|---|---|
protected 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).
|
protected void |
tryReset(boolean added)
Reduces every counter by half of its original value.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreportMisspublic PeriodicResetCountMin4(Config config)
protected void ensureCapacity(long maximumSize)
CountMin4ensureCapacity in class CountMin4maximumSize - the maximum size of the cachepublic int frequency(long e)
CountMin4public void increment(long e)
CountMin4