org.apache.lucene.index
Class FieldFilterAtomicReader

java.lang.Object
  extended by org.apache.lucene.index.IndexReader
      extended by org.apache.lucene.index.AtomicReader
          extended by org.apache.lucene.index.FilterAtomicReader
              extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.lucene.index.FilterAtomicReader
FilterAtomicReader.FilterDocsAndPositionsEnum, FilterAtomicReader.FilterDocsEnum, FilterAtomicReader.FilterFields, FilterAtomicReader.FilterTerms, FilterAtomicReader.FilterTermsEnum
 
Nested classes/interfaces inherited from class org.apache.lucene.index.IndexReader
IndexReader.ReaderClosedListener
 
Field Summary
 
Fields inherited from class org.apache.lucene.index.FilterAtomicReader
in
 
Constructor Summary
FieldFilterAtomicReader(AtomicReader in, Set<String> fields, boolean negate)
           
 
Method Summary
 void document(int docID, StoredFieldVisitor visitor)
           
 DocValues docValues(String field)
           
 Fields fields()
           
 FieldInfos getFieldInfos()
           
 Fields getTermVectors(int docID)
           
 DocValues normValues(String field)
           
 String toString()
           
 
Methods inherited from class org.apache.lucene.index.FilterAtomicReader
doClose, getCombinedCoreAndDeletesKey, getCoreCacheKey, getLiveDocs, hasDeletions, maxDoc, numDocs
 
Methods inherited from class org.apache.lucene.index.AtomicReader
docFreq, getContext, hasNorms, termDocsEnum, termPositionsEnum, terms, totalTermFreq
 
Methods inherited from class org.apache.lucene.index.IndexReader
addReaderClosedListener, close, decRef, document, document, ensureOpen, equals, getRefCount, getTermVector, hashCode, incRef, leaves, numDeletedDocs, open, open, open, open, open, registerParentReader, removeReaderClosedListener, tryIncRef
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FieldFilterAtomicReader

public FieldFilterAtomicReader(AtomicReader in,
                               Set<String> fields,
                               boolean negate)
Method Detail

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

docValues

public DocValues docValues(String field)
                    throws IOException
Overrides:
docValues in class FilterAtomicReader
Throws:
IOException

normValues

public DocValues normValues(String field)
                     throws IOException
Overrides:
normValues in class FilterAtomicReader
Throws:
IOException

toString

public String toString()
Overrides:
toString in class FilterAtomicReader


Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.