org.apache.lucene.index
Class FieldFilterAtomicReader
java.lang.Object
org.apache.lucene.index.IndexReader
org.apache.lucene.index.AtomicReader
org.apache.lucene.index.FilterAtomicReader
org.apache.lucene.index.FieldFilterAtomicReader
- All Implemented Interfaces:
- Closeable
public final class FieldFilterAtomicReader
- extends FilterAtomicReader
A FilterAtomicReader
that exposes only a subset
of fields from the underlying wrapped reader.
Methods inherited from class org.apache.lucene.index.IndexReader |
addReaderClosedListener, close, decRef, document, document, ensureOpen, equals, getCombinedCoreAndDeletesKey, getCoreCacheKey, getRefCount, getTermVector, hasDeletions, hashCode, incRef, leaves, numDeletedDocs, open, open, open, open, open, registerParentReader, removeReaderClosedListener, tryIncRef |
FieldFilterAtomicReader
public FieldFilterAtomicReader(AtomicReader in,
Set<String> fields,
boolean negate)
getFieldInfos
public FieldInfos getFieldInfos()
- Overrides:
getFieldInfos
in class FilterAtomicReader
getTermVectors
public Fields getTermVectors(int docID)
throws IOException
- Overrides:
getTermVectors
in class FilterAtomicReader
- Throws:
IOException
document
public void document(int docID,
StoredFieldVisitor visitor)
throws IOException
- Overrides:
document
in class FilterAtomicReader
- Throws:
IOException
fields
public Fields fields()
throws IOException
- Overrides:
fields
in class FilterAtomicReader
- Throws:
IOException
getNumericDocValues
public NumericDocValues getNumericDocValues(String field)
throws IOException
- Overrides:
getNumericDocValues
in class FilterAtomicReader
- Throws:
IOException
getBinaryDocValues
public BinaryDocValues getBinaryDocValues(String field)
throws IOException
- Overrides:
getBinaryDocValues
in class FilterAtomicReader
- Throws:
IOException
getSortedDocValues
public SortedDocValues getSortedDocValues(String field)
throws IOException
- Overrides:
getSortedDocValues
in class FilterAtomicReader
- Throws:
IOException
getNormValues
public NumericDocValues getNormValues(String field)
throws IOException
- Overrides:
getNormValues
in class FilterAtomicReader
- Throws:
IOException
getDocsWithField
public Bits getDocsWithField(String field)
throws IOException
- Overrides:
getDocsWithField
in class FilterAtomicReader
- Throws:
IOException
toString
public String toString()
- Overrides:
toString
in class FilterAtomicReader
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.