protected static class AccumuloOutputFormat.AccumuloRecordWriter extends Object implements org.apache.hadoop.mapred.RecordWriter<org.apache.hadoop.io.Text,Mutation>
RecordWriter
instances that write to Accumulo.Modifier | Constructor and Description |
---|---|
protected |
AccumuloRecordWriter(org.apache.hadoop.mapred.JobConf job) |
Modifier and Type | Method and Description |
---|---|
void |
addTable(org.apache.hadoop.io.Text tableName) |
void |
close(org.apache.hadoop.mapred.Reporter reporter) |
void |
write(org.apache.hadoop.io.Text table,
Mutation mutation)
Push a mutation into a table.
|
protected AccumuloRecordWriter(org.apache.hadoop.mapred.JobConf job) throws AccumuloException, AccumuloSecurityException
public void write(org.apache.hadoop.io.Text table, Mutation mutation) throws IOException
AccumuloOutputFormat.canCreateTables(JobConf)
is set, the table will be created if it
does not exist. The table name must only contain alphanumerics and underscore.write
in interface org.apache.hadoop.mapred.RecordWriter<org.apache.hadoop.io.Text,Mutation>
IOException
public void addTable(org.apache.hadoop.io.Text tableName) throws AccumuloException, AccumuloSecurityException
public void close(org.apache.hadoop.mapred.Reporter reporter) throws IOException
close
in interface org.apache.hadoop.mapred.RecordWriter<org.apache.hadoop.io.Text,Mutation>
IOException
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.