Class ReductionCheckedDataReader<A>
- java.lang.Object
-
- org.apache.solr.analytics.stream.reservation.read.ReductionDataReader<A>
-
- org.apache.solr.analytics.stream.reservation.read.ReductionCheckedDataReader<A>
-
- Direct Known Subclasses:
BooleanCheckedDataReader,DoubleCheckedDataReader,FloatCheckedDataReader,IntCheckedDataReader,LongCheckedDataReader,StringCheckedDataReader
public abstract class ReductionCheckedDataReader<A> extends ReductionDataReader<A>
Abstract class to manage the reading and application of data from aDataInputstream. The data being read may not exist, so the reader first checks before reading.
-
-
Field Summary
-
Fields inherited from class org.apache.solr.analytics.stream.reservation.read.ReductionDataReader
applier, inputStream
-
-
Constructor Summary
Constructors Constructor Description ReductionCheckedDataReader(DataInput inputStream, A applier)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidcheckedRead()Read a piece of data from the input stream and feed it to the applier.voidread()Read a piece of data from the input stream and feed it to the applier.
-
-
-
Method Detail
-
read
public void read() throws IOExceptionDescription copied from class:ReductionDataReaderRead a piece of data from the input stream and feed it to the applier.- Specified by:
readin classReductionDataReader<A>- Throws:
IOException- if an exception occurs while reading from the input stream
-
checkedRead
protected abstract void checkedRead() throws IOExceptionRead a piece of data from the input stream and feed it to the applier.
This piece of data is guaranteed to be there.- Throws:
IOException- if an exception occurs while reading from the input stream
-
-