public abstract class ReductionCheckedDataWriter<C> extends ReductionDataWriter<C>
DataOutput stream.
The data being written may not exist, so the writer first writes whether the data exists before writing the data.extractor, output| Constructor and Description |
|---|
ReductionCheckedDataWriter(DataOutput output,
C extractor,
BooleanSupplier existsSupplier) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
checkedWrite()
Write a piece of data, retrieved from the extractor, to the output stream.
|
void |
write()
Write a piece of data, retrieved from the extractor, to the output stream.
|
public ReductionCheckedDataWriter(DataOutput output, C extractor, BooleanSupplier existsSupplier)
public void write()
throws IOException
write in class ReductionDataWriter<C>IOException - if an exception occurs while writing to the output streamprotected abstract void checkedWrite()
throws IOException
IOException - if an exception occurs while writing to the output streamCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.