Interface RecordWriter<P>

    • Method Detail

      • open

        default void open()
                   throws java.lang.Exception
        Open the writer.
        Throws:
        java.lang.Exception - if an error occurs during opening the writer
      • writeRecords

        void writeRecords​(Batch<P> batch)
                   throws java.lang.Exception
        Write a batch of records to a data sink.
        Parameters:
        batch - of records to write.
        Throws:
        java.lang.Exception - if an error occurs during record writing
      • close

        default void close()
                    throws java.lang.Exception
        Close the writer
        Throws:
        java.lang.Exception - if an error occurs during closing the writer