public class IndexDataReader extends Object
| Modifier and Type | Class and Description | 
|---|---|
| static class  | IndexDataReader.IndexDataReadResultAn index data read result holder | 
| static interface  | IndexDataReader.IndexDataReadVisitorVisitor 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
IOExceptionpublic IndexDataReader.IndexDataReadResult readIndex(org.apache.lucene.index.IndexWriter w, IndexingContext context) throws IOException
IOExceptionpublic long readHeader()
                throws IOException
IOExceptionpublic org.apache.lucene.document.Document readDocument()
                                                 throws IOException
IOExceptionpublic 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-2013 The Apache Software Foundation. All Rights Reserved.