Class ReductionDataArrayReader<A>

    • Constructor Detail

      • ReductionDataArrayReader

        public ReductionDataArrayReader​(DataInput inputStream,
                                        A applier,
                                        IntConsumer signal)
    • Method Detail

      • read

        public void read()
                  throws IOException
        Read an array of data from the input stream and feed it to the applier, first signaling the size of the array.
        Specified by:
        read in class ReductionDataReader<A>
        Throws:
        IOException - if an exception occurs while reading from the input stream
      • read

        protected abstract void read​(int size)
                              throws IOException
        Read an array from the input stream, feeding each member to the applier.
        Parameters:
        size - length of the array to read
        Throws:
        IOException - if an exception occurs while reading from the input stream