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 Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn index data read result holderstatic interfaceVisitor of indexed Lucene documents. - 
Constructor Summary
ConstructorsConstructorDescriptionIndexDataReader(InputStream is, int threads) IndexDataReader(InputStream is, Path tempStorage, DocumentFilter filter, FSDirectoryFactory factory, int threads) IndexDataReader(InputStream is, IndexUpdateRequest request)  - 
Method Summary
Modifier 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
 - 
IndexDataReader
public IndexDataReader(InputStream is, Path tempStorage, DocumentFilter filter, FSDirectoryFactory factory, int threads) throws IOException - Throws:
 IOException
 
 - 
 - 
Method Details
- 
readIndex
public IndexDataReader.IndexDataReadResult readIndex(org.apache.lucene.index.IndexWriter w, IndexingContext context) throws IOException - Throws:
 IOException
 - 
readHeader
- Throws:
 IOException
 - 
readDocument
- Throws:
 IOException
 - 
readIndex
public 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 visitorcontext- indexing context- Returns:
 - statistics about read data
 - Throws:
 IOException- in case of an IO exception during index file access
 
 -