Class Lucene60PointsWriter

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class Lucene60PointsWriter
    extends PointsWriter
    implements java.io.Closeable
    Writes dimensional values
    • Field Detail

      • dataOut

        protected final IndexOutput dataOut
        Output used to write the BKD tree data file
      • indexFPs

        protected final java.util.Map<java.lang.String,​java.lang.Long> indexFPs
        Maps field name to file pointer in the data file where the BKD index is located.
      • maxPointsInLeafNode

        final int maxPointsInLeafNode
      • maxMBSortInHeap

        final double maxMBSortInHeap
      • finished

        private boolean finished
    • Constructor Detail

      • Lucene60PointsWriter

        public Lucene60PointsWriter​(SegmentWriteState writeState,
                                    int maxPointsInLeafNode,
                                    double maxMBSortInHeap)
                             throws java.io.IOException
        Full constructor
        Throws:
        java.io.IOException
      • Lucene60PointsWriter

        public Lucene60PointsWriter​(SegmentWriteState writeState)
                             throws java.io.IOException
        Uses the defaults values for maxPointsInLeafNode (1024) and maxMBSortInHeap (16.0)
        Throws:
        java.io.IOException
    • Method Detail

      • writeField

        public void writeField​(FieldInfo fieldInfo,
                               PointsReader reader)
                        throws java.io.IOException
        Description copied from class: PointsWriter
        Write all values contained in the provided reader
        Specified by:
        writeField in class PointsWriter
        Throws:
        java.io.IOException
      • merge

        public void merge​(MergeState mergeState)
                   throws java.io.IOException
        Description copied from class: PointsWriter
        Default merge implementation to merge incoming points readers by visiting all their points and adding to this writer
        Overrides:
        merge in class PointsWriter
        Throws:
        java.io.IOException
      • finish

        public void finish()
                    throws java.io.IOException
        Description copied from class: PointsWriter
        Called once at the end before close
        Specified by:
        finish in class PointsWriter
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException