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
LeafReader.CoreClosedListener
IndexReader.ReaderClosedListener
in
Constructor and Description |
---|
FieldFilterLeafReader(LeafReader in,
Set<String> fields,
boolean negate) |
Modifier and Type | Method and Description |
---|---|
void |
document(int docID,
StoredFieldVisitor visitor) |
Fields |
fields() |
BinaryDocValues |
getBinaryDocValues(String field) |
Bits |
getDocsWithField(String field) |
FieldInfos |
getFieldInfos() |
NumericDocValues |
getNormValues(String field) |
NumericDocValues |
getNumericDocValues(String field) |
SortedDocValues |
getSortedDocValues(String field) |
SortedNumericDocValues |
getSortedNumericDocValues(String field) |
SortedSetDocValues |
getSortedSetDocValues(String field) |
Fields |
getTermVectors(int docID) |
String |
toString() |
addCoreClosedListener, checkIntegrity, doClose, getDelegate, getLiveDocs, maxDoc, numDocs, removeCoreClosedListener, unwrap
addCoreClosedListenerAsReaderClosedListener, docFreq, getContext, getDocCount, getSumDocFreq, getSumTotalTermFreq, postings, postings, removeCoreClosedListenerAsReaderClosedListener, termDocsEnum, termPositionsEnum, terms, totalTermFreq
addReaderClosedListener, close, decRef, document, document, ensureOpen, equals, getCombinedCoreAndDeletesKey, getCoreCacheKey, getRefCount, getTermVector, hasDeletions, hashCode, incRef, leaves, numDeletedDocs, registerParentReader, removeReaderClosedListener, 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 Fields fields() throws IOException
fields
in class FilterLeafReader
IOException
public NumericDocValues getNumericDocValues(String field) throws IOException
getNumericDocValues
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 Bits getDocsWithField(String field) throws IOException
getDocsWithField
in class FilterLeafReader
IOException
public String toString()
toString
in class FilterLeafReader
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.