Module org.apache.lucene.core
Package org.apache.lucene.util
Class RoaringDocIdSet.ShortArrayDocIdSet
java.lang.Object
org.apache.lucene.search.DocIdSet
org.apache.lucene.util.RoaringDocIdSet.ShortArrayDocIdSet
- All Implemented Interfaces:
Accountable
- Enclosing class:
- RoaringDocIdSet
DocIdSet
implementation that can store documents up to 2^16-1 in a short[].-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long
private final short[]
Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioniterator()
Provides aDocIdSetIterator
to access the set.long
Return the memory usage of this object in bytes.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.lucene.util.Accountable
getChildResources
-
Field Details
-
BASE_RAM_BYTES_USED
private static final long BASE_RAM_BYTES_USED -
docIDs
private final short[] docIDs
-
-
Constructor Details
-
ShortArrayDocIdSet
private ShortArrayDocIdSet(short[] docIDs)
-
-
Method Details
-
ramBytesUsed
public long ramBytesUsed()Description copied from interface:Accountable
Return the memory usage of this object in bytes. Negative values are illegal. -
iterator
Description copied from class:DocIdSet
Provides aDocIdSetIterator
to access the set. This implementation can returnnull
if there are no docs that match.- Specified by:
iterator
in classDocIdSet
- Throws:
IOException
-