public class CountMinSketchState extends Object
Constructor and Description |
---|
CountMinSketchState(CountMinSketchStateHashes hashes,
CountMinSketchStateTopk topk) |
Modifier and Type | Method and Description |
---|---|
void |
add(byte[] bytes,
int count) |
long |
frequency(byte[] bytes) |
CountMinSketchStateHashes |
getHashes() |
CountMinSketchStateTopk |
getTopk() |
Collection<ByteBuffer> |
getTopKValues() |
static CountMinSketchState |
makeState(CountMinSketchSpec spec) |
void |
setHashes(CountMinSketchStateHashes hashes) |
void |
setTopk(CountMinSketchStateTopk topk) |
public CountMinSketchState(CountMinSketchStateHashes hashes, CountMinSketchStateTopk topk)
public static CountMinSketchState makeState(CountMinSketchSpec spec)
public void add(byte[] bytes, int count)
public long frequency(byte[] bytes)
public Collection<ByteBuffer> getTopKValues()
public CountMinSketchStateHashes getHashes()
public CountMinSketchStateTopk getTopk()
public void setHashes(CountMinSketchStateHashes hashes)
public void setTopk(CountMinSketchStateTopk topk)