Example usage for Java org.apache.lucene.index LeafReader fields, constructors, methods, implement or subclass
The text is from its open source code.
void | close() Closes files associated with this index. |
Document | document(int docID) Returns the stored fields of the n th Document in this index. |
void | document(int docID, StoredFieldVisitor visitor) Expert: visits the fields of a stored document, for custom processing/loading of each field. |
BinaryDocValues | getBinaryDocValues(String field) Returns BinaryDocValues for this field, or null if no binary doc values were indexed for this field. |
LeafReaderContext | getContext() |
CacheHelper | getCoreCacheHelper() Optional method: Return a IndexReader.CacheHelper that can be used to cache based on the content of this leaf regardless of deletions. |
int | getDocCount(String field) |
FieldInfos | getFieldInfos() Get the FieldInfos describing all fields in this reader. |
Bits | getLiveDocs() Returns the Bits representing live (not deleted) docs. |
NumericDocValues | getNormValues(String field) Returns NumericDocValues representing norms for this field, or null if no NumericDocValues were indexed. |
NumericDocValues | getNumericDocValues(String field) Returns NumericDocValues for this field, or null if no numeric doc values were indexed for this field. |
PointValues | getPointValues(String field) Returns the PointValues used for numeric or spatial searches for the given field, or null if there are no point fields. |
CacheHelper | getReaderCacheHelper() Optional method: Return a CacheHelper that can be used to cache based on the content of this reader. |
SortedDocValues | getSortedDocValues(String field) Returns SortedDocValues for this field, or null if no SortedDocValues were indexed for this field. |
SortedNumericDocValues | getSortedNumericDocValues(String field) Returns SortedNumericDocValues for this field, or null if no SortedNumericDocValues were indexed for this field. |
SortedSetDocValues | getSortedSetDocValues(String field) Returns SortedSetDocValues for this field, or null if no SortedSetDocValues were indexed for this field. |
long | getSumDocFreq(String field) |
Terms | getTermVector(int docID, String field) Retrieve term vector for this document and field, or null if term vectors were not indexed. |
Fields | getTermVectors(int docID) Retrieve term vectors for this document, or null if term vectors were not indexed. |
boolean | hasDeletions() Returns true if any documents have been deleted. |
int | maxDoc() Returns one greater than the largest possible document number. |
int | numDocs() Returns the number of documents in this index. |
PostingsEnum | postings(Term term) Returns PostingsEnum for the specified term with PostingsEnum#FREQS . |
PostingsEnum | postings(Term term, int flags) Returns PostingsEnum for the specified term. |
Terms | terms(String field) Returns the Terms index for this field, or null if it has none. |