public final class PaginatedStore extends java.lang.Object implements Store
On the contrary, if the data is uniformly distributed filling each page in a range [N, N + K *
PAGE_SIZE) this store will require K * (20 + 4|8) extra space over UnboundedSizeDenseStore, because of the metadata overhead of the array headers and references to
each page.
| Constructor and Description |
|---|
PaginatedStore() |
| Modifier and Type | Method and Description |
|---|---|
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() |
double |
getTotalCount() |
boolean |
isEmpty() |
void |
mergeWith(Store store)
Merges another store into this one.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, add, add, decodeAndMergeWith, getAscendingStream, getDescendingStream, getStream, serialize, serializedSizepublic boolean isEmpty()
public int getMinIndex()
getMinIndex in interface Storepublic int getMaxIndex()
getMaxIndex in interface Storepublic void forEach(BinAcceptor acceptor)
Storepublic double getTotalCount()
getTotalCount in interface Storepublic void add(int index,
double count)
Storepublic void mergeWith(Store store)
Storeadd
operations that have been run on the other store on this one.public void clear()
Storepublic java.util.Iterator<Bin> getAscendingIterator()
getAscendingIterator in interface Storepublic java.util.Iterator<Bin> getDescendingIterator()
getDescendingIterator in interface Store