Class ReductionDataArrayWriter<C>

    • Constructor Detail

      • ReductionDataArrayWriter

        public ReductionDataArrayWriter​(DataOutput output,
                                        C extractor,
                                        IntSupplier sizeSupplier)
    • Method Detail

      • write

        public void write()
                   throws IOException
        Write an array of data, retrieved from the extractor, and its size, received from the sizeSupplier, to the output stream.
        Specified by:
        write in class ReductionDataWriter<C>
        Throws:
        IOException - if an exception occurs while writing to the output stream
      • write

        protected abstract void write​(int size)
                               throws IOException
        Write an array of data, retrieved from the extractor, with the given size to the output stream.
        Throws:
        IOException - if an exception occurs while writing to the output stream