|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.mapred.TableOutputFormat.TableRecordWriter
protected class TableOutputFormat.TableRecordWriter
Convert Reduce output (key, value) to (HStoreKey, KeyedDataArrayWritable) and write to an HBase table
| Constructor Summary | |
|---|---|
TableOutputFormat.TableRecordWriter(HTable table)
Instantiate a TableRecordWriter with the HBase HClient for writing. |
|
| Method Summary | |
|---|---|
void |
close(Reporter reporter)
Close this RecordWriter to future operations. |
void |
write(Text key,
MapWritable value)
Writes a key/value pair. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TableOutputFormat.TableRecordWriter(HTable table)
table - | Method Detail |
|---|
public void close(Reporter reporter)
RecordWriter to future operations.
close in interface RecordWriter<Text,MapWritable>reporter - facility to report progress.
public void write(Text key,
MapWritable value)
throws IOException
write in interface RecordWriter<Text,MapWritable>key - the key to write.value - the value to write.
IOExceptionWritable.write(DataOutput)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||