Class OnDiskIndexBuilder


  • public class OnDiskIndexBuilder
    extends java.lang.Object
    • Method Detail

      • estimatedMemoryUse

        public long estimatedMemoryUse()
      • isEmpty

        public boolean isEmpty()
      • finish

        public void finish​(Pair<java.nio.ByteBuffer,​java.nio.ByteBuffer> range,
                           java.io.File file,
                           TermIterator terms)
      • finish

        public boolean finish​(java.io.File indexFile)
                       throws FSWriteError
        Finishes up index building process by creating/populating index file.
        Parameters:
        indexFile - The file to write index contents to.
        Returns:
        true if index was written successfully, false otherwise (e.g. if index was empty).
        Throws:
        FSWriteError - on I/O error.
      • finish

        protected void finish​(Descriptor descriptor,
                              Pair<java.nio.ByteBuffer,​java.nio.ByteBuffer> range,
                              java.io.File file,
                              TermIterator terms)
      • alignToBlock

        protected static void alignToBlock​(SequentialWriter out)
                                    throws java.io.IOException
        Throws:
        java.io.IOException