Package org.apache.maven.index.updater
Class IndexDataReader
java.lang.Object
org.apache.maven.index.updater.IndexDataReader
An index data reader used to parse transfer index format.
- Author:
- Eugene Kuleshov
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classAn index data read result holderstatic interfaceVisitor of indexed Lucene documents.
- 
Constructor SummaryConstructorsConstructorDescriptionIndexDataReader(InputStream is, int threads) IndexDataReader(InputStream is, Path tempStorage, DocumentFilter filter, FSDirectoryFactory factory, int threads) IndexDataReader(InputStream is, IndexUpdateRequest request) 
- 
Method SummaryModifier and TypeMethodDescriptionorg.apache.lucene.document.DocumentlongreadIndex(org.apache.lucene.index.IndexWriter w, IndexingContext context) readIndex(IndexDataReader.IndexDataReadVisitor visitor, IndexingContext context) Reads index content by using a visitor.
- 
Constructor Details- 
IndexDataReader- Throws:
- IOException
 
- 
IndexDataReader- Throws:
- IOException
 
- 
IndexDataReader- Throws:
- IOException
 
- 
IndexDataReaderpublic IndexDataReader(InputStream is, Path tempStorage, DocumentFilter filter, FSDirectoryFactory factory, int threads) throws IOException - Throws:
- IOException
 
 
- 
- 
Method Details- 
readIndexpublic IndexDataReader.IndexDataReadResult readIndex(org.apache.lucene.index.IndexWriter w, IndexingContext context) throws IOException - Throws:
- IOException
 
- 
readHeader- Throws:
- IOException
 
- 
readDocument- Throws:
- IOException
 
- 
readIndexpublic IndexDataReader.IndexDataReadResult readIndex(IndexDataReader.IndexDataReadVisitor visitor, IndexingContext context) throws IOException Reads index content by using a visitor.
 The visitor is called for each read documents after it has been populated with Lucene fields.- Parameters:
- visitor- an index data visitor
- context- indexing context
- Returns:
- statistics about read data
- Throws:
- IOException- in case of an IO exception during index file access
 
 
-