FileDocCategorySizeDatePackage
FilterIndexReader.javaAPI DocApache Lucene 1.4.35498Mon Jun 14 02:15:24 BST 2004org.apache.lucene.index

FilterIndexReader

public class FilterIndexReader extends IndexReader
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.

Fields Summary
protected IndexReader
in
Constructors Summary
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.

param
in specified base reader.

    super(in.directory());
    this.in = in;
  
Methods Summary
protected voiddoClose()

 in.close(); 
protected voiddoCommit()

 in.commit(); 
protected voiddoDelete(int n)

 in.delete(n); 
protected voiddoSetNorm(int d, java.lang.String f, byte b)

    in.setNorm(d, f, b);
  
protected voiddoUndeleteAll()

 in.undeleteAll(); 
public intdocFreq(org.apache.lucene.index.Term t)

 return in.docFreq(t); 
public org.apache.lucene.document.Documentdocument(int n)

 return in.document(n); 
public java.util.CollectiongetFieldNames()

    return in.getFieldNames();
  
public java.util.CollectiongetFieldNames(boolean indexed)

    return in.getFieldNames(indexed);
  
public java.util.CollectiongetIndexedFieldNames(boolean storedTermVector)

param
storedTermVector if true, returns only Indexed fields that have term vector info, else only indexed fields without term vector info
return
Collection of Strings indicating the names of the fields

    return in.getIndexedFieldNames(storedTermVector);
  
public org.apache.lucene.index.TermFreqVectorgetTermFreqVector(int docNumber, java.lang.String field)

    return in.getTermFreqVector(docNumber, field);
  
public org.apache.lucene.index.TermFreqVector[]getTermFreqVectors(int docNumber)

    return in.getTermFreqVectors(docNumber);
  
public booleanhasDeletions()

 return in.hasDeletions(); 
public booleanisDeleted(int n)

 return in.isDeleted(n); 
public intmaxDoc()

 return in.maxDoc(); 
public byte[]norms(java.lang.String f)

 return in.norms(f); 
public voidnorms(java.lang.String f, byte[] bytes, int offset)

    in.norms(f, bytes, offset);
  
public intnumDocs()

 return in.numDocs(); 
public org.apache.lucene.index.TermDocstermDocs()

 return in.termDocs(); 
public org.apache.lucene.index.TermPositionstermPositions()

    return in.termPositions();
  
public org.apache.lucene.index.TermEnumterms()

 return in.terms(); 
public org.apache.lucene.index.TermEnumterms(org.apache.lucene.index.Term t)

 return in.terms(t);