public final class FieldFilterLeafReader extends FilterLeafReader
FilterLeafReader
that exposes only a subset
of fields from the underlying wrapped reader.FilterLeafReader.FilterFields, FilterLeafReader.FilterPostingsEnum, FilterLeafReader.FilterTerms, FilterLeafReader.FilterTermsEnum
IndexReader.CacheHelper, IndexReader.CacheKey, IndexReader.ClosedListener
in
Constructor and Description |
---|
FieldFilterLeafReader(LeafReader in,
Set<String> fields,
boolean negate) |
Modifier and Type | Method and Description |
---|---|
void |
document(int docID,
StoredFieldVisitor visitor) |
BinaryDocValues |
getBinaryDocValues(String field) |
IndexReader.CacheHelper |
getCoreCacheHelper() |
FieldInfos |
getFieldInfos() |
NumericDocValues |
getNormValues(String field) |
IndexReader.CacheHelper |
getReaderCacheHelper() |
SortedDocValues |
getSortedDocValues(String field) |
SortedNumericDocValues |
getSortedNumericDocValues(String field) |
SortedSetDocValues |
getSortedSetDocValues(String field) |
Fields |
getTermVectors(int docID) |
Terms |
terms(String field) |
String |
toString() |
checkIntegrity, doClose, getDelegate, getLiveDocs, getMetaData, getNumericDocValues, getPointValues, maxDoc, numDocs, unwrap
docFreq, getContext, getDocCount, getSumDocFreq, getSumTotalTermFreq, postings, postings, totalTermFreq
close, decRef, document, document, ensureOpen, equals, getRefCount, getTermVector, hasDeletions, hashCode, incRef, leaves, numDeletedDocs, registerParentReader, tryIncRef
public FieldFilterLeafReader(LeafReader in, Set<String> fields, boolean negate)
public FieldInfos getFieldInfos()
getFieldInfos
in class FilterLeafReader
public Fields getTermVectors(int docID) throws IOException
getTermVectors
in class FilterLeafReader
IOException
public void document(int docID, StoredFieldVisitor visitor) throws IOException
document
in class FilterLeafReader
IOException
public Terms terms(String field) throws IOException
terms
in class FilterLeafReader
IOException
public BinaryDocValues getBinaryDocValues(String field) throws IOException
getBinaryDocValues
in class FilterLeafReader
IOException
public SortedDocValues getSortedDocValues(String field) throws IOException
getSortedDocValues
in class FilterLeafReader
IOException
public SortedNumericDocValues getSortedNumericDocValues(String field) throws IOException
getSortedNumericDocValues
in class FilterLeafReader
IOException
public SortedSetDocValues getSortedSetDocValues(String field) throws IOException
getSortedSetDocValues
in class FilterLeafReader
IOException
public NumericDocValues getNormValues(String field) throws IOException
getNormValues
in class FilterLeafReader
IOException
public String toString()
toString
in class FilterLeafReader
public IndexReader.CacheHelper getCoreCacheHelper()
getCoreCacheHelper
in class LeafReader
public IndexReader.CacheHelper getReaderCacheHelper()
getReaderCacheHelper
in class IndexReader
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.