public class FileBatchWriter extends Object implements RecordWriter<Batch>
| Constructor and Description |
|---|
FileBatchWriter(FileWriter fileWriter)
Writes a batch of records to a file.
|
public FileBatchWriter(FileWriter fileWriter) throws IOException
fileWriter - the file writer to write records toIOException - thrown if the file cannot be openedpublic 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.