org.apache.lucene.index
public class FilterIndexReader extends IndexReader
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 | |
---|---|
static class | FilterIndexReader.FilterTermDocs Base class for filtering TermDocs implementations. |
static class | FilterIndexReader.FilterTermEnum Base class for filtering TermEnum implementations. |
static class | FilterIndexReader.FilterTermPositions Base class for filtering TermPositions implementations. |
Field Summary | |
---|---|
protected IndexReader | in |
Constructor Summary | |
---|---|
FilterIndexReader(IndexReader in) Construct a FilterIndexReader based on the specified base reader. |
Method Summary | |
---|---|
int | docFreq(Term t) |
Document | document(int n) |
protected void | doClose() |
protected void | doCommit() |
protected void | doDelete(int n) |
protected void | doSetNorm(int d, String f, byte b) |
protected void | doUndeleteAll() |
Collection | getFieldNames() |
Collection | getFieldNames(boolean indexed) |
Collection | getFieldNames(IndexReader.FieldOption fieldNames) |
Collection | getIndexedFieldNames(Field.TermVector tvSpec) |
TermFreqVector | getTermFreqVector(int docNumber, String field) |
TermFreqVector[] | getTermFreqVectors(int docNumber) |
boolean | hasDeletions() |
boolean | hasNorms(String field) |
boolean | isDeleted(int n) |
int | maxDoc() |
byte[] | norms(String f) |
void | norms(String f, byte[] bytes, int offset) |
int | numDocs() |
TermDocs | termDocs() |
TermPositions | termPositions() |
TermEnum | terms() |
TermEnum | terms(Term t) |
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.