Java org.apache.lucene.index LeafReader fields, constructors, methods, implement or subclass

Example usage for Java org.apache.lucene.index LeafReader fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.lucene.index LeafReader.

The text is from its open source code.

Subclass

org.apache.lucene.index.LeafReader has subclasses.
Click this link to see all its subclasses.

Method

voidclose()
Closes files associated with this index.
Documentdocument(int docID)
Returns the stored fields of the nth Document in this index.
voiddocument(int docID, StoredFieldVisitor visitor)
Expert: visits the fields of a stored document, for custom processing/loading of each field.
BinaryDocValuesgetBinaryDocValues(String field)
Returns BinaryDocValues for this field, or null if no binary doc values were indexed for this field.
LeafReaderContextgetContext()
CacheHelpergetCoreCacheHelper()
Optional method: Return a IndexReader.CacheHelper that can be used to cache based on the content of this leaf regardless of deletions.
intgetDocCount(String field)
FieldInfosgetFieldInfos()
Get the FieldInfos describing all fields in this reader.
BitsgetLiveDocs()
Returns the Bits representing live (not deleted) docs.
NumericDocValuesgetNormValues(String field)
Returns NumericDocValues representing norms for this field, or null if no NumericDocValues were indexed.
NumericDocValuesgetNumericDocValues(String field)
Returns NumericDocValues for this field, or null if no numeric doc values were indexed for this field.
PointValuesgetPointValues(String field)
Returns the PointValues used for numeric or spatial searches for the given field, or null if there are no point fields.
CacheHelpergetReaderCacheHelper()
Optional method: Return a CacheHelper that can be used to cache based on the content of this reader.
SortedDocValuesgetSortedDocValues(String field)
Returns SortedDocValues for this field, or null if no SortedDocValues were indexed for this field.
SortedNumericDocValuesgetSortedNumericDocValues(String field)
Returns SortedNumericDocValues for this field, or null if no SortedNumericDocValues were indexed for this field.
SortedSetDocValuesgetSortedSetDocValues(String field)
Returns SortedSetDocValues for this field, or null if no SortedSetDocValues were indexed for this field.
longgetSumDocFreq(String field)
TermsgetTermVector(int docID, String field)
Retrieve term vector for this document and field, or null if term vectors were not indexed.
FieldsgetTermVectors(int docID)
Retrieve term vectors for this document, or null if term vectors were not indexed.
booleanhasDeletions()
Returns true if any documents have been deleted.
intmaxDoc()
Returns one greater than the largest possible document number.
intnumDocs()
Returns the number of documents in this index.
PostingsEnumpostings(Term term)
Returns PostingsEnum for the specified term with PostingsEnum#FREQS .
PostingsEnumpostings(Term term, int flags)
Returns PostingsEnum for the specified term.
Termsterms(String field)
Returns the Terms index for this field, or null if it has none.