Class CollectionRecordWriter<P>

  • Type Parameters:
    P - type of the record's payload
    All Implemented Interfaces:
    RecordWriter<P>

    public class CollectionRecordWriter<P>
    extends java.lang.Object
    implements RecordWriter<P>
    Record writer that writes records to a Collection.
    Author:
    Mahmoud Ben Hassine ([email protected])
    • Constructor Detail

      • CollectionRecordWriter

        public CollectionRecordWriter​(java.util.Collection<P> collection)
        Parameters:
        collection - the collection to write records to
    • Method Detail

      • writeRecords

        public void writeRecords​(Batch<P> batch)
        Description copied from interface: RecordWriter
        Write a batch of records to a data sink.
        Specified by:
        writeRecords in interface RecordWriter<P>
        Parameters:
        batch - of records to write.