public class IndexDataReader extends Object
Modifier and Type | Class and Description |
---|---|
static class |
IndexDataReader.IndexDataReadResult
An index data read result holder
|
static interface |
IndexDataReader.IndexDataReadVisitor
Visitor of indexed Lucene documents.
|
Constructor and Description |
---|
IndexDataReader(InputStream is) |
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.document.Document |
readDocument() |
long |
readHeader() |
IndexDataReader.IndexDataReadResult |
readIndex(IndexDataReader.IndexDataReadVisitor visitor,
IndexingContext context)
Reads index content by using a visitor.
|
IndexDataReader.IndexDataReadResult |
readIndex(org.apache.lucene.index.IndexWriter w,
IndexingContext context) |
public IndexDataReader(InputStream is) throws IOException
IOException
public IndexDataReader.IndexDataReadResult readIndex(org.apache.lucene.index.IndexWriter w, IndexingContext context) throws IOException
IOException
public long readHeader() throws IOException
IOException
public org.apache.lucene.document.Document readDocument() throws IOException
IOException
public IndexDataReader.IndexDataReadResult readIndex(IndexDataReader.IndexDataReadVisitor visitor, IndexingContext context) throws IOException
visitor
- an index data visitorcontext
- indexing contextIOException
- in case of an IO exception during index file accessCopyright © 2002–2017 The Apache Software Foundation. All rights reserved.