|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.mapred.MapReduceBase
org.apache.hadoop.hbase.mapred.GroupingTableMap
@Deprecated public class GroupingTableMap
Extract grouping columns from input record
Field Summary | |
---|---|
protected byte[][] |
columns
Deprecated. |
static String |
GROUP_COLUMNS
Deprecated. JobConf parameter to specify the columns used to produce the key passed to collect from the map phase |
Constructor Summary | |
---|---|
GroupingTableMap()
Deprecated. |
Method Summary | |
---|---|
void |
configure(org.apache.hadoop.mapred.JobConf job)
Deprecated. |
protected ImmutableBytesWritable |
createGroupKey(byte[][] vals)
Deprecated. Create a key by concatenating multiple column values. |
protected byte[][] |
extractKeyValues(Result r)
Deprecated. Extract columns values from the current record. |
static void |
initJob(String table,
String columns,
String groupColumns,
Class<? extends TableMap> mapper,
org.apache.hadoop.mapred.JobConf job)
Deprecated. Use this before submitting a TableMap job. |
void |
map(ImmutableBytesWritable key,
Result value,
org.apache.hadoop.mapred.OutputCollector<ImmutableBytesWritable,Result> output,
org.apache.hadoop.mapred.Reporter reporter)
Deprecated. Extract the grouping columns from value to construct a new key. |
Methods inherited from class org.apache.hadoop.mapred.MapReduceBase |
---|
close |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.io.Closeable |
---|
close |
Field Detail |
---|
public static final String GROUP_COLUMNS
protected byte[][] columns
Constructor Detail |
---|
public GroupingTableMap()
Method Detail |
---|
public static void initJob(String table, String columns, String groupColumns, Class<? extends TableMap> mapper, org.apache.hadoop.mapred.JobConf job)
table
- table to be processedcolumns
- space separated list of columns to fetchgroupColumns
- space separated list of columns used to form the key
used in collectmapper
- map classjob
- job configuration objectpublic void configure(org.apache.hadoop.mapred.JobConf job)
configure
in interface org.apache.hadoop.mapred.JobConfigurable
configure
in class org.apache.hadoop.mapred.MapReduceBase
public void map(ImmutableBytesWritable key, Result value, org.apache.hadoop.mapred.OutputCollector<ImmutableBytesWritable,Result> output, org.apache.hadoop.mapred.Reporter reporter) throws IOException
map
in interface org.apache.hadoop.mapred.Mapper<ImmutableBytesWritable,Result,ImmutableBytesWritable,Result>
key
- value
- output
- reporter
-
IOException
protected byte[][] extractKeyValues(Result r)
r
-
protected ImmutableBytesWritable createGroupKey(byte[][] vals)
vals
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |