public class IndexDataReader
extends java.lang.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.
|
Modifier and Type | Field and Description |
---|---|
private java.io.DataInputStream |
dis |
Constructor and Description |
---|
IndexDataReader(java.io.InputStream is) |
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.document.Document |
readDocument() |
private org.apache.lucene.document.Field |
readField() |
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) |
private static java.lang.String |
readUTF(java.io.DataInput in) |
public IndexDataReader(java.io.InputStream is) throws java.io.IOException
java.io.IOException
public IndexDataReader.IndexDataReadResult readIndex(org.apache.lucene.index.IndexWriter w, IndexingContext context) throws java.io.IOException
java.io.IOException
public long readHeader() throws java.io.IOException
java.io.IOException
public org.apache.lucene.document.Document readDocument() throws java.io.IOException
java.io.IOException
private org.apache.lucene.document.Field readField() throws java.io.IOException
java.io.IOException
private static java.lang.String readUTF(java.io.DataInput in) throws java.io.IOException
java.io.IOException
public IndexDataReader.IndexDataReadResult readIndex(IndexDataReader.IndexDataReadVisitor visitor, IndexingContext context) throws java.io.IOException
visitor
- an index data visitorcontext
- indexing contextjava.io.IOException
- in case of an IO exception during index file access