conservative, step, table, tableMask| Constructor and Description |
|---|
ClimberResetCountMin4(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).
|
int |
getEventsToCount() |
int |
getPeriod() |
int |
getStep() |
void |
increment(long e)
Increments the popularity of the element if it does not exceed the maximum (15).
|
void |
reportMiss()
Feedback to allow for adaptability.
|
void |
resetEventsToCount() |
void |
setStep(int x) |
protected void |
tryReset(boolean added)
Reduces every counter by half of its original value.
|
public ClimberResetCountMin4(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)
CountMin4protected void tryReset(boolean added)
public void reportMiss()
Frequencypublic int getStep()
public void setStep(int x)
public int getEventsToCount()
public void resetEventsToCount()
public int getPeriod()