org.apache.maven.index.updater
Class IndexDataWriter

java.lang.Object
  extended by org.apache.maven.index.updater.IndexDataWriter

public class IndexDataWriter
extends Object

An index data writer used to write transfer index format.

Author:
Eugene Kuleshov

Constructor Summary
IndexDataWriter(OutputStream os)
           
 
Method Summary
 void close()
           
 int write(IndexingContext context, List<Integer> docIndexes)
           
 boolean writeDocument(org.apache.lucene.document.Document document)
           
 void writeDocumentFields(List<org.apache.lucene.document.Fieldable> fields)
           
 int writeDocuments(org.apache.lucene.index.IndexReader r, List<Integer> docIndexes)
           
 void writeField(org.apache.lucene.document.Fieldable field)
           
 void writeGroupFields()
           
 void writeHeader(IndexingContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexDataWriter

public IndexDataWriter(OutputStream os)
                throws IOException
Throws:
IOException
Method Detail

write

public int write(IndexingContext context,
                 List<Integer> docIndexes)
          throws IOException
Throws:
IOException

close

public void close()
           throws IOException
Throws:
IOException

writeHeader

public void writeHeader(IndexingContext context)
                 throws IOException
Throws:
IOException

writeGroupFields

public void writeGroupFields()
                      throws IOException
Throws:
IOException

writeDocuments

public int writeDocuments(org.apache.lucene.index.IndexReader r,
                          List<Integer> docIndexes)
                   throws IOException
Throws:
IOException

writeDocument

public boolean writeDocument(org.apache.lucene.document.Document document)
                      throws IOException
Throws:
IOException

writeDocumentFields

public void writeDocumentFields(List<org.apache.lucene.document.Fieldable> fields)
                         throws IOException
Throws:
IOException

writeField

public void writeField(org.apache.lucene.document.Fieldable field)
                throws IOException
Throws:
IOException


Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.