Class ReductionDataWriter<E>
- java.lang.Object
-
- org.apache.solr.analytics.stream.reservation.write.ReductionDataWriter<E>
-
- Direct Known Subclasses:
BooleanDataWriter
,DoubleDataWriter
,FloatDataWriter
,IntDataWriter
,LongDataWriter
,ReductionCheckedDataWriter
,ReductionDataArrayWriter
,StringDataWriter
public abstract class ReductionDataWriter<E> extends Object
Abstract public class to manage the extraction and writing of data to aDataOutput
stream.
-
-
Field Summary
Fields Modifier and Type Field Description protected E
extractor
protected DataOutput
output
-
Constructor Summary
Constructors Constructor Description ReductionDataWriter(DataOutput output, E extractor)
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract void
write()
Write a piece of data, retrieved from the extractor, to the output stream.
-
-
-
Field Detail
-
output
protected final DataOutput output
-
extractor
protected final E extractor
-
-
Constructor Detail
-
ReductionDataWriter
public ReductionDataWriter(DataOutput output, E extractor)
-
-
Method Detail
-
write
public abstract void write() throws IOException
Write a piece of data, retrieved from the extractor, to the output stream.- Throws:
IOException
- if an exception occurs while writing to the output stream
-
-