org.apache.hadoop.hbase.mapred
Class TableOutputFormat.TableRecordWriter
java.lang.Object
org.apache.hadoop.hbase.mapred.TableOutputFormat.TableRecordWriter
- All Implemented Interfaces:
- org.apache.hadoop.mapred.RecordWriter<org.apache.hadoop.io.Text,org.apache.hadoop.io.MapWritable>
- Enclosing class:
- TableOutputFormat
protected class TableOutputFormat.TableRecordWriter
- extends Object
- implements org.apache.hadoop.mapred.RecordWriter<org.apache.hadoop.io.Text,org.apache.hadoop.io.MapWritable>
Convert Reduce output (key, value) to (HStoreKey, KeyedDataArrayWritable)
and write to an HBase table
Method Summary |
void |
close(org.apache.hadoop.mapred.Reporter reporter)
|
void |
write(org.apache.hadoop.io.Text key,
org.apache.hadoop.io.MapWritable value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TableOutputFormat.TableRecordWriter
public TableOutputFormat.TableRecordWriter(HTable table)
- Instantiate a TableRecordWriter with the HBase HClient for writing.
- Parameters:
table
-
close
public void close(org.apache.hadoop.mapred.Reporter reporter)
-
- Specified by:
close
in interface org.apache.hadoop.mapred.RecordWriter<org.apache.hadoop.io.Text,org.apache.hadoop.io.MapWritable>
write
public void write(org.apache.hadoop.io.Text key,
org.apache.hadoop.io.MapWritable value)
throws IOException
-
- Specified by:
write
in interface org.apache.hadoop.mapred.RecordWriter<org.apache.hadoop.io.Text,org.apache.hadoop.io.MapWritable>
- Throws:
IOException
Copyright © 2008 The Apache Software Foundation