private static class RoaringDocIdSet.ShortArrayDocIdSet extends DocIdSet
DocIdSet implementation that can store documents up to 2^16-1 in a short[].| Modifier and Type | Field and Description |
|---|---|
private static long |
BASE_RAM_BYTES_USED |
private short[] |
docIDs |
| Modifier | Constructor and Description |
|---|---|
private |
ShortArrayDocIdSet(short[] docIDs) |
| Modifier and Type | Method and Description |
|---|---|
DocIdSetIterator |
iterator()
Provides a
DocIdSetIterator to access the set. |
long |
ramBytesUsed()
Return the memory usage of this object in bytes.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChildResourcesprivate static final long BASE_RAM_BYTES_USED
private final short[] docIDs
public long ramBytesUsed()
Accountablepublic DocIdSetIterator iterator() throws java.io.IOException
DocIdSetDocIdSetIterator to access the set.
This implementation can return null if there
are no docs that match.