public abstract class ReductionDataArrayWriter<C> extends ReductionDataWriter<C>
DataOutput
stream.extractor, output
Constructor and Description |
---|
ReductionDataArrayWriter(DataOutput output,
C extractor,
IntSupplier sizeSupplier) |
Modifier and Type | Method and Description |
---|---|
void |
write()
Write an array of data, retrieved from the extractor, and its size, received from the sizeSupplier, to the output stream.
|
protected abstract void |
write(int size)
Write an array of data, retrieved from the extractor, with the given size to the output stream.
|
public ReductionDataArrayWriter(DataOutput output, C extractor, IntSupplier sizeSupplier)
public void write() throws IOException
write
in class ReductionDataWriter<C>
IOException
- if an exception occurs while writing to the output streamprotected abstract void write(int size) throws IOException
IOException
- if an exception occurs while writing to the output streamCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.