Class AccumuloRecordWriter

  • All Implemented Interfaces:
    org.apache.hadoop.mapred.RecordWriter<org.apache.hadoop.io.Text,​Mutation>

    public class AccumuloRecordWriter
    extends Object
    implements org.apache.hadoop.mapred.RecordWriter<org.apache.hadoop.io.Text,​Mutation>
    A base class to be used to create RecordWriter instances that write to Accumulo.
    • Constructor Detail

      • AccumuloRecordWriter

        public AccumuloRecordWriter​(org.apache.hadoop.mapred.JobConf job)
    • Method Detail

      • write

        public void write​(org.apache.hadoop.io.Text table,
                          Mutation mutation)
                   throws IOException
        Push a mutation into a table. If table is null, the defaultTable will be used. If OutputFormatBuilder#createTables() is set, the table will be created if it does not exist. The table name must only contain alphanumerics and underscore.
        Specified by:
        write in interface org.apache.hadoop.mapred.RecordWriter<org.apache.hadoop.io.Text,​Mutation>
        Throws:
        IOException
      • close

        public void close​(org.apache.hadoop.mapred.Reporter reporter)
                   throws IOException
        Specified by:
        close in interface org.apache.hadoop.mapred.RecordWriter<org.apache.hadoop.io.Text,​Mutation>
        Throws:
        IOException