Class StandardOutputRecordWriter<P>

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

    public class StandardOutputRecordWriter<P>
    extends java.lang.Object
    implements RecordWriter<P>
    Record writer that writes the payload of a Record to the standard output by calling its toString method.
    Author:
    Mahmoud Ben Hassine ([email protected])
    • Constructor Detail

      • StandardOutputRecordWriter

        public StandardOutputRecordWriter()
    • 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.