Package org.apache.lucene.index
Class DocsWithFieldSet
java.lang.Object
org.apache.lucene.search.DocIdSet
org.apache.lucene.index.DocsWithFieldSet
- All Implemented Interfaces:
Accountable
Accumulator for documents that have a value for a field. This is optimized
for the case that all documents have a value.
-
Field Summary
FieldsFields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidadd(int docID) iterator()Provides aDocIdSetIteratorto access the set.longReturn 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, waitMethods inherited from interface org.apache.lucene.util.Accountable
getChildResources
-
Field Details
-
BASE_RAM_BYTES_USED
private static long BASE_RAM_BYTES_USED -
set
-
cost
private int cost -
lastDocId
private int lastDocId
-
-
Constructor Details
-
DocsWithFieldSet
DocsWithFieldSet()
-
-
Method Details
-
add
void add(int docID) -
ramBytesUsed
public long ramBytesUsed()Description copied from interface:AccountableReturn the memory usage of this object in bytes. Negative values are illegal. -
iterator
Description copied from class:DocIdSetProvides aDocIdSetIteratorto access the set. This implementation can returnnullif there are no docs that match.
-