Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.lucene.index.IndexReader
org.apache.lucene.index.FilterIndexReader
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 |
|
static class |
|
static class |
|
Nested classes/interfaces inherited from class org.apache.lucene.index.IndexReader | |
IndexReader.FieldOption |
Field Summary | |
protected IndexReader |
Fields inherited from class org.apache.lucene.index.IndexReader | |
deleter |
Constructor Summary | |
|
Method Summary | |
protected void |
|
protected void |
|
protected void |
|
protected void |
|
protected void | |
int | |
Document |
|
Collection |
|
TermFreqVector |
|
TermFreqVector[] |
|
long | |
boolean | |
boolean |
|
boolean | |
boolean |
|
int |
|
byte[] |
|
void |
|
int |
|
TermDocs |
|
TermPositions | |
TermEnum |
|
TermEnum |
Methods inherited from class org.apache.lucene.index.IndexReader | |
close , commit , deleteDocument , deleteDocuments , directory , doClose , doCommit , doDelete , doSetNorm , doUndeleteAll , docFreq , document , document , finalize , getCurrentVersion , getCurrentVersion , getCurrentVersion , getDeleter , getFieldNames , getTermFreqVector , getTermFreqVectors , getVersion , hasDeletions , hasNorms , indexExists , indexExists , indexExists , isCurrent , isDeleted , isLocked , isLocked , isOptimized , lastModified , lastModified , lastModified , main , maxDoc , norms , norms , numDocs , open , open , open , setDeleter , setNorm , setNorm , termDocs , termDocs , termPositions , termPositions , terms , terms , undeleteAll , unlock |
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.
protected void doDelete(int n) throws IOException
- Overrides:
- doDelete in interface IndexReader
protected void doSetNorm(int d, String f, byte b) throws IOException
- Overrides:
- doSetNorm in interface IndexReader
protected void doUndeleteAll() throws IOException
- Overrides:
- doUndeleteAll in interface IndexReader
public Document document(int n, FieldSelector fieldSelector) throws IOException
- Overrides:
- document in interface IndexReader
public Collection getFieldNames(IndexReader.FieldOption fieldNames)
- Overrides:
- getFieldNames in interface IndexReader
public TermFreqVector getTermFreqVector(int docNumber, String field) throws IOException
- Overrides:
- getTermFreqVector in interface IndexReader
public TermFreqVector[] getTermFreqVectors(int docNumber) throws IOException
- Overrides:
- getTermFreqVectors in interface IndexReader
public boolean hasNorms(String field) throws IOException
- Overrides:
- hasNorms in interface IndexReader
public void norms(String f, byte[] bytes, int offset) throws IOException
- Overrides:
- norms in interface IndexReader
public TermPositions termPositions() throws IOException
- Overrides:
- termPositions in interface IndexReader