public abstract class ReductionCheckedDataReader<A> extends ReductionDataReader<A>
DataInput stream.
The data being read may not exist, so the reader first checks before reading.applier, inputStream| Constructor and Description |
|---|
ReductionCheckedDataReader(DataInput inputStream,
A applier) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
checkedRead()
Read a piece of data from the input stream and feed it to the applier.
|
void |
read()
Read a piece of data from the input stream and feed it to the applier.
|
public void read()
throws IOException
ReductionDataReaderread in class ReductionDataReader<A>IOException - if an exception occurs while reading from the input streamprotected abstract void checkedRead()
throws IOException
IOException - if an exception occurs while reading from the input streamCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.