Module org.elasticsearch.server
Class FieldUsageTrackingDirectoryReader.FieldUsageTrackingLeafReader
java.lang.Object
org.apache.lucene.index.IndexReader
org.apache.lucene.index.LeafReader
org.apache.lucene.index.FilterLeafReader
org.elasticsearch.common.lucene.index.SequentialStoredFieldsLeafReader
org.elasticsearch.search.internal.FieldUsageTrackingDirectoryReader.FieldUsageTrackingLeafReader
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Enclosing class:
- FieldUsageTrackingDirectoryReader
public static final class FieldUsageTrackingDirectoryReader.FieldUsageTrackingLeafReader
extends SequentialStoredFieldsLeafReader
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.index.FilterLeafReader
org.apache.lucene.index.FilterLeafReader.FilterFields, org.apache.lucene.index.FilterLeafReader.FilterPostingsEnum, org.apache.lucene.index.FilterLeafReader.FilterTerms, org.apache.lucene.index.FilterLeafReader.FilterTermsEnum
Nested classes/interfaces inherited from class org.apache.lucene.index.IndexReader
org.apache.lucene.index.IndexReader.CacheHelper, org.apache.lucene.index.IndexReader.CacheKey, org.apache.lucene.index.IndexReader.ClosedListener
-
Field Summary
Fields inherited from class org.apache.lucene.index.FilterLeafReader
in
-
Constructor Summary
ConstructorDescriptionFieldUsageTrackingLeafReader
(org.apache.lucene.index.LeafReader in, FieldUsageTrackingDirectoryReader.FieldUsageNotifier notifier) -
Method Summary
Modifier and TypeMethodDescriptionvoid
document
(int docID, org.apache.lucene.index.StoredFieldVisitor visitor) protected org.apache.lucene.codecs.StoredFieldsReader
doGetSequentialStoredFieldsReader
(org.apache.lucene.codecs.StoredFieldsReader reader) Implementations should return aStoredFieldsReader
that wraps the providedreader
that is optimized for sequential access (adjacent doc ids).org.apache.lucene.index.BinaryDocValues
getBinaryDocValues
(String field) org.apache.lucene.index.IndexReader.CacheHelper
org.apache.lucene.index.NumericDocValues
getNormValues
(String field) org.apache.lucene.index.PointValues
getPointValues
(String field) org.apache.lucene.index.IndexReader.CacheHelper
org.apache.lucene.index.SortedDocValues
getSortedDocValues
(String field) org.apache.lucene.index.SortedNumericDocValues
getSortedNumericDocValues
(String field) org.apache.lucene.index.SortedSetDocValues
getSortedSetDocValues
(String field) org.apache.lucene.index.Fields
getTermVectors
(int docID) org.apache.lucene.index.VectorValues
getVectorValues
(String field) org.apache.lucene.search.TopDocs
searchNearestVectors
(String field, float[] target, int k, org.apache.lucene.util.Bits acceptDocs, int visitedLimit) org.apache.lucene.index.Terms
toString()
Methods inherited from class org.elasticsearch.common.lucene.index.SequentialStoredFieldsLeafReader
getSequentialStoredFieldsReader
Methods inherited from class org.apache.lucene.index.FilterLeafReader
checkIntegrity, doClose, getDelegate, getFieldInfos, getLiveDocs, getMetaData, getNumericDocValues, maxDoc, numDocs, unwrap
Methods inherited from class org.apache.lucene.index.LeafReader
docFreq, getContext, getDocCount, getSumDocFreq, getSumTotalTermFreq, postings, postings, 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
-
Constructor Details
-
FieldUsageTrackingLeafReader
public FieldUsageTrackingLeafReader(org.apache.lucene.index.LeafReader in, FieldUsageTrackingDirectoryReader.FieldUsageNotifier notifier)
-
-
Method Details
-
getTermVectors
- Overrides:
getTermVectors
in classorg.apache.lucene.index.FilterLeafReader
- Throws:
IOException
-
getPointValues
- Overrides:
getPointValues
in classorg.apache.lucene.index.FilterLeafReader
- Throws:
IOException
-
document
public void document(int docID, org.apache.lucene.index.StoredFieldVisitor visitor) throws IOException - Overrides:
document
in classorg.apache.lucene.index.FilterLeafReader
- Throws:
IOException
-
terms
- Overrides:
terms
in classorg.apache.lucene.index.FilterLeafReader
- Throws:
IOException
-
getBinaryDocValues
- Overrides:
getBinaryDocValues
in classorg.apache.lucene.index.FilterLeafReader
- Throws:
IOException
-
getSortedDocValues
- Overrides:
getSortedDocValues
in classorg.apache.lucene.index.FilterLeafReader
- Throws:
IOException
-
getSortedNumericDocValues
public org.apache.lucene.index.SortedNumericDocValues getSortedNumericDocValues(String field) throws IOException - Overrides:
getSortedNumericDocValues
in classorg.apache.lucene.index.FilterLeafReader
- Throws:
IOException
-
getSortedSetDocValues
public org.apache.lucene.index.SortedSetDocValues getSortedSetDocValues(String field) throws IOException - Overrides:
getSortedSetDocValues
in classorg.apache.lucene.index.FilterLeafReader
- Throws:
IOException
-
getNormValues
- Overrides:
getNormValues
in classorg.apache.lucene.index.FilterLeafReader
- Throws:
IOException
-
getVectorValues
- Overrides:
getVectorValues
in classorg.apache.lucene.index.FilterLeafReader
- Throws:
IOException
-
searchNearestVectors
public org.apache.lucene.search.TopDocs searchNearestVectors(String field, float[] target, int k, org.apache.lucene.util.Bits acceptDocs, int visitedLimit) throws IOException - Overrides:
searchNearestVectors
in classorg.apache.lucene.index.FilterLeafReader
- Throws:
IOException
-
toString
- Overrides:
toString
in classorg.apache.lucene.index.FilterLeafReader
-
doGetSequentialStoredFieldsReader
protected org.apache.lucene.codecs.StoredFieldsReader doGetSequentialStoredFieldsReader(org.apache.lucene.codecs.StoredFieldsReader reader) Description copied from class:SequentialStoredFieldsLeafReader
Implementations should return aStoredFieldsReader
that wraps the providedreader
that is optimized for sequential access (adjacent doc ids).- Specified by:
doGetSequentialStoredFieldsReader
in classSequentialStoredFieldsLeafReader
-
getCoreCacheHelper
public org.apache.lucene.index.IndexReader.CacheHelper getCoreCacheHelper()- Specified by:
getCoreCacheHelper
in classorg.apache.lucene.index.LeafReader
-
getReaderCacheHelper
public org.apache.lucene.index.IndexReader.CacheHelper getReaderCacheHelper()- Specified by:
getReaderCacheHelper
in classorg.apache.lucene.index.IndexReader
-