Class PointsWriter

  • All Implemented Interfaces:
    Closeable, AutoCloseable
    Direct Known Subclasses:
    Lucene60PointsWriter

    public abstract class PointsWriter
    extends Object
    implements Closeable
    Abstract API to write points
    WARNING: This API is experimental and might change in incompatible ways in the next release.
    • Constructor Detail

      • PointsWriter

        protected PointsWriter()
        Sole constructor. (For invocation by subclass constructors, typically implicit.)
    • Method Detail

      • mergeOneField

        protected void mergeOneField​(MergeState mergeState,
                                     FieldInfo fieldInfo)
                              throws IOException
        Default naive merge implementation for one field: it just re-indexes all the values from the incoming segment. The default codec overrides this for 1D fields and uses a faster but more complex implementation.
        Throws:
        IOException
      • merge

        public void merge​(MergeState mergeState)
                   throws IOException
        Default merge implementation to merge incoming points readers by visiting all their points and adding to this writer
        Throws:
        IOException
      • finish

        public abstract void finish()
                             throws IOException
        Called once at the end before close
        Throws:
        IOException