public class StringBatchWriter extends Object implements RecordWriter<Batch>
StringWriter.| Constructor and Description |
|---|
StringBatchWriter(StringWriter stringWriter)
Writes a batch of records to a
StringWriter. |
public StringBatchWriter(StringWriter stringWriter)
StringWriter.stringWriter - the string writer 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.