Package org.apache.maven.index.updater
Class IndexDataWriter
- java.lang.Object
-
- org.apache.maven.index.updater.IndexDataWriter
-
public class IndexDataWriter extends java.lang.ObjectAn index data writer used to write transfer index format.- Author:
- Eugene Kuleshov
-
-
Constructor Summary
Constructors Constructor Description IndexDataWriter(java.io.OutputStream os)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()intwrite(IndexingContext context, org.apache.lucene.index.IndexReader indexReader, java.util.List<java.lang.Integer> docIndexes)booleanwriteDocument(org.apache.lucene.document.Document document)voidwriteDocumentFields(java.util.List<org.apache.lucene.index.IndexableField> fields)intwriteDocuments(org.apache.lucene.index.IndexReader r, java.util.List<java.lang.Integer> docIndexes)voidwriteField(org.apache.lucene.index.IndexableField field)voidwriteGroupFields()voidwriteHeader(IndexingContext context)
-
-
-
Method Detail
-
write
public int write(IndexingContext context, org.apache.lucene.index.IndexReader indexReader, java.util.List<java.lang.Integer> docIndexes) throws java.io.IOException
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Throws:
java.io.IOException
-
writeHeader
public void writeHeader(IndexingContext context) throws java.io.IOException
- Throws:
java.io.IOException
-
writeGroupFields
public void writeGroupFields() throws java.io.IOException- Throws:
java.io.IOException
-
writeDocuments
public int writeDocuments(org.apache.lucene.index.IndexReader r, java.util.List<java.lang.Integer> docIndexes) throws java.io.IOException- Throws:
java.io.IOException
-
writeDocument
public boolean writeDocument(org.apache.lucene.document.Document document) throws java.io.IOException- Throws:
java.io.IOException
-
writeDocumentFields
public void writeDocumentFields(java.util.List<org.apache.lucene.index.IndexableField> fields) throws java.io.IOException- Throws:
java.io.IOException
-
writeField
public void writeField(org.apache.lucene.index.IndexableField field) throws java.io.IOException- Throws:
java.io.IOException
-
-