Interface StatisticsRecordWriter

All Superinterfaces:
StatisticsRecordCollector
All Known Implementing Classes:
JsonStatisticsRecordWriter

public interface StatisticsRecordWriter extends StatisticsRecordCollector
  • Method Details

    • init

      void init(Map<String,String> writerOptions)
      Initialize the writer.
      Parameters:
      writerOptions - Contains key, value pair of settings.
      Throws:
      IOException
    • updateSchema

      void updateSchema(VectorAccessible batch)
      Update the schema in RecordWriter. Called at least once before starting writing the records.
      Parameters:
      batch -
      Throws:
      IOException
    • checkForNewPartition

      void checkForNewPartition(int index)
      Check if the writer should start a new partition, and if so, start a new partition
    • isBlockingWriter

      boolean isBlockingWriter()
      Returns if the writer is a blocking writer i.e. consumes all input before writing it out
      Returns:
      TRUE, if writer is blocking. FALSE, otherwise
    • flushBlockingWriter

      void flushBlockingWriter() throws IOException
      For a blocking writer, called after processing all the records to flush out the writes
      Throws:
      IOException
    • abort

      void abort()
    • cleanup

      void cleanup()