Class IndexDataWriter


  • public class IndexDataWriter
    extends java.lang.Object
    An 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
      void close()  
      int write​(IndexingContext context, org.apache.lucene.index.IndexReader indexReader, java.util.List<java.lang.Integer> docIndexes)  
      boolean writeDocument​(org.apache.lucene.document.Document document)  
      void writeDocumentFields​(java.util.List<org.apache.lucene.index.IndexableField> fields)  
      int writeDocuments​(org.apache.lucene.index.IndexReader r, java.util.List<java.lang.Integer> docIndexes)  
      void writeField​(org.apache.lucene.index.IndexableField 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​(java.io.OutputStream os)
                        throws java.io.IOException
        Throws:
        java.io.IOException
    • 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