|
||||||||||
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(HClient client)
Instantiate a TableRecordWriter with the HBase HClient for writing. |
Method Summary | |
---|---|
void |
close(Reporter reporter)
Close this to future operations. |
void |
write(WritableComparable key,
Writable value)
Expect key to be of type Text Expect value to be of type KeyedDataArrayWritable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TableOutputFormat.TableRecordWriter(HClient client)
client
- Method Detail |
---|
public void close(Reporter reporter)
RecordWriter
close
in interface RecordWriter
public void write(WritableComparable key, Writable value) throws IOException
write
in interface RecordWriter
key
- the key to writevalue
- the value to write
IOException
RecordWriter.write(org.apache.hadoop.io.WritableComparable, org.apache.hadoop.io.Writable)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |