Package 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<ImmutableBytesWritable,Put>
- Enclosing class:
- TableOutputFormat
protected static class TableOutputFormat.TableRecordWriter
extends Object
implements org.apache.hadoop.mapred.RecordWriter<ImmutableBytesWritable,Put>
Convert Reduce output (key, value) to (HStoreKey, KeyedDataArrayWritable) and write to an HBase
table.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTableRecordWriter(org.apache.hadoop.mapred.JobConf job) Instantiate a TableRecordWriter with a BufferedMutator for batch writing. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose(org.apache.hadoop.mapred.Reporter reporter) voidwrite(ImmutableBytesWritable key, Put value)
-
Field Details
-
m_mutator
-
conn
-
-
Constructor Details
-
TableRecordWriter
Instantiate a TableRecordWriter with a BufferedMutator for batch writing.- Throws:
IOException
-
-
Method Details
-
close
- Specified by:
closein interfaceorg.apache.hadoop.mapred.RecordWriter<ImmutableBytesWritable,Put> - Throws:
IOException
-
write
- Specified by:
writein interfaceorg.apache.hadoop.mapred.RecordWriter<ImmutableBytesWritable,Put> - Throws:
IOException
-