Class KuduRecordWriterImpl

All Implemented Interfaces:
RecordWriter

public class KuduRecordWriterImpl extends KuduRecordWriter
  • Constructor Details

    • KuduRecordWriterImpl

      public KuduRecordWriterImpl(OperatorContext context, org.apache.kudu.client.KuduClient client, String name)
  • Method Details

    • init

      public void init(Map<String,String> writerOptions) throws IOException
      Description copied from interface: RecordWriter
      Initialize the writer.
      Parameters:
      writerOptions - Contains key, value pair of settings.
      Throws:
      IOException
    • updateSchema

      public void updateSchema(VectorAccessible batch) throws IOException
      Description copied from interface: RecordWriter
      Update the schema in RecordWriter. Called at least once before starting writing the records.
      Parameters:
      batch -
      Throws:
      IOException
    • startRecord

      public void startRecord() throws IOException
      Description copied from interface: RecordWriter
      Called before starting writing fields in a record.
      Throws:
      IOException
    • endRecord

      public void endRecord() throws IOException
      Description copied from interface: RecordWriter
      Called after adding all fields in a particular record are added using add{TypeHolder}(fieldId, TypeHolder) methods.
      Throws:
      IOException
    • abort

      public void abort() throws IOException
      Throws:
      IOException
    • cleanup

      public void cleanup() throws IOException
      Throws:
      IOException