Class Lucene86PointsWriter

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

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

      • metaOut

        protected final IndexOutput metaOut
        Outputs used to write the BKD tree data files.
      • indexOut

        protected final IndexOutput indexOut
        Outputs used to write the BKD tree data files.
      • dataOut

        protected final IndexOutput dataOut
        Outputs used to write the BKD tree data files.
      • maxPointsInLeafNode

        final int maxPointsInLeafNode
      • maxMBSortInHeap

        final double maxMBSortInHeap
      • finished

        private boolean finished
    • Constructor Detail

      • Lucene86PointsWriter

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

        public Lucene86PointsWriter​(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