Save This Page
Home » lucene-2.3.2-src » org.apache » lucene » index » [javadoc | source]
org.apache.lucene.index
public class: FilterIndexReader [javadoc | source]
java.lang.Object
   org.apache.lucene.index.IndexReader
      org.apache.lucene.index.FilterIndexReader

Direct Known Subclasses:
    TestReader, OneNormsReader

A FilterIndexReader contains another IndexReader, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality. The class FilterIndexReader itself simply implements all abstract methods of IndexReader with versions that pass all requests to the contained index reader. Subclasses of FilterIndexReader may further override some of these methods and may also provide additional methods and fields.
Nested Class Summary:
public static class  FilterIndexReader.FilterTermDocs  Base class for filtering {@link TermDocs} implementations. 
public static class  FilterIndexReader.FilterTermPositions  Base class for filtering {@link TermPositions} implementations. 
public static class  FilterIndexReader.FilterTermEnum  Base class for filtering {@link TermEnum} implementations. 
Field Summary
protected  IndexReader in     
Fields inherited from org.apache.lucene.index.IndexReader:
hasChanges
Constructor:
 public FilterIndexReader(IndexReader in) 

    Construct a FilterIndexReader based on the specified base reader. Directory locking for delete, undeleteAll, and setNorm operations is left to the base reader.

    Note that base reader is closed if this FilterIndexReader is closed.

    Parameters:
    in - specified base reader.
Method from org.apache.lucene.index.FilterIndexReader Summary:
directory,   doClose,   doCommit,   doDelete,   doSetNorm,   doUndeleteAll,   docFreq,   document,   getFieldNames,   getTermFreqVector,   getTermFreqVector,   getTermFreqVector,   getTermFreqVectors,   getVersion,   hasDeletions,   hasNorms,   isCurrent,   isDeleted,   isOptimized,   maxDoc,   norms,   norms,   numDocs,   termDocs,   termPositions,   terms,   terms
Methods from org.apache.lucene.index.IndexReader:
acquireWriteLock,   close,   commit,   decRef,   deleteDocument,   deleteDocuments,   directory,   doClose,   doCommit,   doDelete,   doSetNorm,   doUndeleteAll,   docFreq,   document,   document,   ensureOpen,   flush,   getCurrentVersion,   getCurrentVersion,   getCurrentVersion,   getFieldNames,   getRefCount,   getTermFreqVector,   getTermFreqVector,   getTermFreqVector,   getTermFreqVectors,   getTermInfosIndexDivisor,   getVersion,   hasDeletions,   hasNorms,   incRef,   indexExists,   indexExists,   indexExists,   isCurrent,   isDeleted,   isLocked,   isLocked,   isOptimized,   lastModified,   lastModified,   lastModified,   main,   maxDoc,   norms,   norms,   numDocs,   open,   open,   open,   open,   reopen,   setNorm,   setNorm,   setTermInfosIndexDivisor,   termDocs,   termDocs,   termPositions,   termPositions,   terms,   terms,   undeleteAll,   unlock
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.lucene.index.FilterIndexReader Detail:
 public Directory directory() 
 protected  void doClose() throws IOException 
 protected  void doCommit() throws IOException 
 protected  void doDelete(int n) throws IOException, CorruptIndexException 
 protected  void doSetNorm(int d,
    String f,
    byte b) throws IOException, CorruptIndexException 
 protected  void doUndeleteAll() throws IOException, CorruptIndexException 
 public int docFreq(Term t) throws IOException 
 public Document document(int n,
    FieldSelector fieldSelector) throws IOException, CorruptIndexException 
 public Collection getFieldNames(IndexReader.FieldOption fieldNames) 
 public TermFreqVector getTermFreqVector(int docNumber,
    String field) throws IOException 
 public  void getTermFreqVector(int docNumber,
    TermVectorMapper mapper) throws IOException 
 public  void getTermFreqVector(int docNumber,
    String field,
    TermVectorMapper mapper) throws IOException 
 public TermFreqVector[] getTermFreqVectors(int docNumber) throws IOException 
 public long getVersion() 
 public boolean hasDeletions() 
 public boolean hasNorms(String field) throws IOException 
 public boolean isCurrent() throws IOException, CorruptIndexException 
 public boolean isDeleted(int n) 
 public boolean isOptimized() 
 public int maxDoc() 
 public byte[] norms(String f) throws IOException 
 public  void norms(String f,
    byte[] bytes,
    int offset) throws IOException 
 public int numDocs() 
 public TermDocs termDocs() throws IOException 
 public TermPositions termPositions() throws IOException 
 public TermEnum terms() throws IOException 
 public TermEnum terms(Term t) throws IOException