public class OutputStreamBatchWriter extends Object implements RecordWriter<Batch>
| Constructor and Description |
|---|
OutputStreamBatchWriter(OutputStreamWriter outputStreamWriter)
Writes a batch of records to an output stream.
|
public OutputStreamBatchWriter(OutputStreamWriter outputStreamWriter)
outputStreamWriter - the output stream to write records topublic Batch processRecord(Batch batch) throws RecordWritingException
RecordWriterprocessRecord in interface RecordProcessor<Batch,Batch>processRecord in interface RecordWriter<Batch>batch - the record to write.RecordWritingException - if an error occurs during record writingCopyright © 2015. All Rights Reserved.