| Constructor and Description |
|---|
SparseStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Bin bin)
Updates the counter at the specified index.
|
void |
add(int index)
Increments the counter at the specified index.
|
void |
add(int index,
double count)
Updates the counter at the specified index.
|
void |
clear()
Zeros all counts in the store.
|
Store |
copy() |
void |
encode(Output output,
Flag.Type storeFlagType) |
void |
forEach(BinAcceptor acceptor)
Supplies each bin to the acceptor
|
java.util.Iterator<Bin> |
getAscendingIterator() |
java.util.Iterator<Bin> |
getDescendingIterator() |
int |
getMaxIndex() |
int |
getMinIndex() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, decodeAndMergeWith, getAscendingStream, getDescendingStream, getStream, getTotalCount, isEmpty, mergeWith, serialize, serializedSizepublic void add(int index)
Storepublic void add(int index,
double count)
Storepublic void add(Bin bin)
Storepublic void clear()
Storepublic int getMinIndex()
getMinIndex in interface Storepublic int getMaxIndex()
getMaxIndex in interface Storepublic void forEach(BinAcceptor acceptor)
Storepublic java.util.Iterator<Bin> getAscendingIterator()
getAscendingIterator in interface Storepublic java.util.Iterator<Bin> getDescendingIterator()
getDescendingIterator in interface Store