public class CollectionBatchWriter extends Object implements RecordWriter<Batch>
Collection.| Constructor and Description |
|---|
CollectionBatchWriter(Collection collection)
Convenient processor that writes a batch of records to a
Collection. |
public CollectionBatchWriter(Collection collection)
Collection.collection - the collection 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.