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
Wraps a Terms with a
LeafReader, 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voiddoClose()getBinaryDocValues(String field) getByteVectorValues(String fieldName) getDocValuesSkipper(String field) getFloatVectorValues(String fieldName) getNormValues(String field) getNumericDocValues(String field) getPointValues(String fieldName) getSortedDocValues(String field) getSortedNumericDocValues(String field) getSortedSetDocValues(String field) intmaxDoc()intnumDocs()voidsearchNearestVectors(String field, byte[] target, KnnCollector knnCollector, Bits acceptDocs) voidsearchNearestVectors(String field, float[] target, KnnCollector knnCollector, Bits acceptDocs) Methods inherited from class org.apache.lucene.index.LeafReader
docFreq, getContext, getDocCount, getSumDocFreq, getSumTotalTermFreq, postings, postings, searchNearestVectors, searchNearestVectors, totalTermFreqMethods inherited from class org.apache.lucene.index.IndexReader
close, decRef, ensureOpen, equals, getRefCount, hasDeletions, hashCode, incRef, leaves, notifyReaderClosedListeners, numDeletedDocs, registerParentReader, tryIncRef
-
Constructor Details
-
TermVectorLeafReader
-
-
Method Details
-
doClose
- Specified by:
doClosein classIndexReader- Throws:
IOException
-
terms
- Specified by:
termsin classLeafReader- Throws:
IOException
-
getNumericDocValues
- Specified by:
getNumericDocValuesin classLeafReader- Throws:
IOException
-
getBinaryDocValues
- Specified by:
getBinaryDocValuesin classLeafReader- Throws:
IOException
-
getSortedDocValues
- Specified by:
getSortedDocValuesin classLeafReader- Throws:
IOException
-
getSortedNumericDocValues
- Specified by:
getSortedNumericDocValuesin classLeafReader- Throws:
IOException
-
getSortedSetDocValues
- Specified by:
getSortedSetDocValuesin classLeafReader- Throws:
IOException
-
getDocValuesSkipper
- Specified by:
getDocValuesSkipperin classLeafReader- Throws:
IOException
-
getNormValues
- Specified by:
getNormValuesin classLeafReader- Throws:
IOException
-
getFieldInfos
- Specified by:
getFieldInfosin classLeafReader
-
getLiveDocs
- Specified by:
getLiveDocsin classLeafReader
-
getPointValues
- Specified by:
getPointValuesin classLeafReader
-
getFloatVectorValues
- Specified by:
getFloatVectorValuesin classLeafReader
-
getByteVectorValues
- Specified by:
getByteVectorValuesin classLeafReader
-
searchNearestVectors
public void searchNearestVectors(String field, float[] target, KnnCollector knnCollector, Bits acceptDocs) - Specified by:
searchNearestVectorsin classLeafReader
-
searchNearestVectors
public void searchNearestVectors(String field, byte[] target, KnnCollector knnCollector, Bits acceptDocs) - Specified by:
searchNearestVectorsin classLeafReader
-
checkIntegrity
- Specified by:
checkIntegrityin classLeafReader- Throws:
IOException
-
termVectors
- Specified by:
termVectorsin classIndexReader- Throws:
IOException
-
numDocs
public int numDocs()- Specified by:
numDocsin classIndexReader
-
maxDoc
public int maxDoc()- Specified by:
maxDocin classIndexReader
-
storedFields
- Specified by:
storedFieldsin classIndexReader- Throws:
IOException
-
getMetaData
- Specified by:
getMetaDatain classLeafReader
-
getCoreCacheHelper
- Specified by:
getCoreCacheHelperin classLeafReader
-
getReaderCacheHelper
- Specified by:
getReaderCacheHelperin classIndexReader
-