Class TermVectorLeafReader
- java.lang.Object
-
- org.apache.lucene.index.IndexReader
-
- org.apache.lucene.index.LeafReader
-
- org.apache.lucene.search.highlight.TermVectorLeafReader
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class TermVectorLeafReader extends LeafReader
Wraps a Terms with aLeafReader
, typically from term vectors.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.lucene.index.IndexReader
IndexReader.CacheHelper, IndexReader.CacheKey, IndexReader.ClosedListener
-
-
Constructor Summary
Constructors Constructor Description TermVectorLeafReader(String field, Terms terms)
-
Method Summary
-
Methods inherited from class org.apache.lucene.index.LeafReader
docFreq, getContext, getDocCount, getSumDocFreq, getSumTotalTermFreq, postings, postings, searchNearestVectors, searchNearestVectors, totalTermFreq
-
Methods inherited from class org.apache.lucene.index.IndexReader
close, decRef, document, document, ensureOpen, equals, getRefCount, getTermVector, hasDeletions, hashCode, incRef, leaves, notifyReaderClosedListeners, numDeletedDocs, registerParentReader, tryIncRef
-
-
-
-
Method Detail
-
doClose
protected void doClose() throws IOException
- Specified by:
doClose
in classIndexReader
- Throws:
IOException
-
terms
public Terms terms(String field) throws IOException
- Specified by:
terms
in classLeafReader
- Throws:
IOException
-
getNumericDocValues
public NumericDocValues getNumericDocValues(String field) throws IOException
- Specified by:
getNumericDocValues
in classLeafReader
- Throws:
IOException
-
getBinaryDocValues
public BinaryDocValues getBinaryDocValues(String field) throws IOException
- Specified by:
getBinaryDocValues
in classLeafReader
- Throws:
IOException
-
getSortedDocValues
public SortedDocValues getSortedDocValues(String field) throws IOException
- Specified by:
getSortedDocValues
in classLeafReader
- Throws:
IOException
-
getSortedNumericDocValues
public SortedNumericDocValues getSortedNumericDocValues(String field) throws IOException
- Specified by:
getSortedNumericDocValues
in classLeafReader
- Throws:
IOException
-
getSortedSetDocValues
public SortedSetDocValues getSortedSetDocValues(String field) throws IOException
- Specified by:
getSortedSetDocValues
in classLeafReader
- Throws:
IOException
-
getNormValues
public NumericDocValues getNormValues(String field) throws IOException
- Specified by:
getNormValues
in classLeafReader
- Throws:
IOException
-
getFieldInfos
public FieldInfos getFieldInfos()
- Specified by:
getFieldInfos
in classLeafReader
-
getLiveDocs
public Bits getLiveDocs()
- Specified by:
getLiveDocs
in classLeafReader
-
getPointValues
public PointValues getPointValues(String fieldName)
- Specified by:
getPointValues
in classLeafReader
-
getFloatVectorValues
public FloatVectorValues getFloatVectorValues(String fieldName)
- Specified by:
getFloatVectorValues
in classLeafReader
-
getByteVectorValues
public ByteVectorValues getByteVectorValues(String fieldName)
- Specified by:
getByteVectorValues
in classLeafReader
-
searchNearestVectors
public void searchNearestVectors(String field, float[] target, KnnCollector knnCollector, Bits acceptDocs)
- Specified by:
searchNearestVectors
in classLeafReader
-
searchNearestVectors
public void searchNearestVectors(String field, byte[] target, KnnCollector knnCollector, Bits acceptDocs)
- Specified by:
searchNearestVectors
in classLeafReader
-
checkIntegrity
public void checkIntegrity() throws IOException
- Specified by:
checkIntegrity
in classLeafReader
- Throws:
IOException
-
getTermVectors
public Fields getTermVectors(int docID) throws IOException
- Specified by:
getTermVectors
in classIndexReader
- Throws:
IOException
-
termVectors
public TermVectors termVectors() throws IOException
- Specified by:
termVectors
in classIndexReader
- Throws:
IOException
-
numDocs
public int numDocs()
- Specified by:
numDocs
in classIndexReader
-
maxDoc
public int maxDoc()
- Specified by:
maxDoc
in classIndexReader
-
document
public void document(int docID, StoredFieldVisitor visitor) throws IOException
- Specified by:
document
in classIndexReader
- Throws:
IOException
-
storedFields
public StoredFields storedFields() throws IOException
- Specified by:
storedFields
in classIndexReader
- Throws:
IOException
-
getMetaData
public LeafMetaData getMetaData()
- Specified by:
getMetaData
in classLeafReader
-
getCoreCacheHelper
public IndexReader.CacheHelper getCoreCacheHelper()
- Specified by:
getCoreCacheHelper
in classLeafReader
-
getReaderCacheHelper
public IndexReader.CacheHelper getReaderCacheHelper()
- Specified by:
getReaderCacheHelper
in classIndexReader
-
-