Class MobRefReporter.MobRefReducer
java.lang.Object
org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.Text,ImmutableBytesWritable,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>
org.apache.hadoop.hbase.mob.mapreduce.MobRefReporter.MobRefReducer
- Enclosing class:
- MobRefReporter
public static class MobRefReporter.MobRefReducer
extends org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.Text,ImmutableBytesWritable,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Reducer
org.apache.hadoop.mapreduce.Reducer.Context
-
Field Summary
Modifier and TypeFieldDescription(package private) org.apache.hadoop.fs.Path
(package private) final Base64.Encoder
(package private) final org.apache.hadoop.io.Text
(package private) final org.apache.hadoop.io.Text
(package private) final org.apache.hadoop.io.Text
(package private) final org.apache.hadoop.io.Text
(package private) final org.apache.hadoop.io.Text
(package private) final org.apache.hadoop.io.Text
(package private) org.apache.hadoop.fs.Path
(package private) String
(package private) final org.apache.hadoop.io.Text
(package private) final org.apache.hadoop.io.Text
(package private) final org.apache.hadoop.io.Text
(package private) String
(package private) TableName
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate org.apache.hadoop.io.Text
encodeRows
(org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.Text, ImmutableBytesWritable, org.apache.hadoop.io.Text, org.apache.hadoop.io.Text>.org.apache.hadoop.mapreduce.Reducer.Context context, org.apache.hadoop.io.Text key, Iterable<ImmutableBytesWritable> rows) reuses the passed Text key.void
reduce
(org.apache.hadoop.io.Text key, Iterable<ImmutableBytesWritable> rows, org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.Text, ImmutableBytesWritable, org.apache.hadoop.io.Text, org.apache.hadoop.io.Text>.org.apache.hadoop.mapreduce.Reducer.Context context) void
setup
(org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.Text, ImmutableBytesWritable, org.apache.hadoop.io.Text, org.apache.hadoop.io.Text>.org.apache.hadoop.mapreduce.Reducer.Context context) Methods inherited from class org.apache.hadoop.mapreduce.Reducer
cleanup, run
-
Field Details
-
Constructor Details
-
MobRefReducer
public MobRefReducer()
-
-
Method Details
-
setup
public void setup(org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.Text, ImmutableBytesWritable, throws IOException, InterruptedExceptionorg.apache.hadoop.io.Text, org.apache.hadoop.io.Text>.org.apache.hadoop.mapreduce.Reducer.Context context) - Overrides:
setup
in classorg.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.Text,
ImmutableBytesWritable, org.apache.hadoop.io.Text, org.apache.hadoop.io.Text> - Throws:
IOException
InterruptedException
-
reduce
public void reduce(org.apache.hadoop.io.Text key, Iterable<ImmutableBytesWritable> rows, org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.Text, ImmutableBytesWritable, throws IOException, InterruptedExceptionorg.apache.hadoop.io.Text, org.apache.hadoop.io.Text>.org.apache.hadoop.mapreduce.Reducer.Context context) - Overrides:
reduce
in classorg.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.Text,
ImmutableBytesWritable, org.apache.hadoop.io.Text, org.apache.hadoop.io.Text> - Throws:
IOException
InterruptedException
-
encodeRows
private org.apache.hadoop.io.Text encodeRows(org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.Text, ImmutableBytesWritable, throws IOExceptionorg.apache.hadoop.io.Text, org.apache.hadoop.io.Text>.org.apache.hadoop.mapreduce.Reducer.Context context, org.apache.hadoop.io.Text key, Iterable<ImmutableBytesWritable> rows) reuses the passed Text key. appends the configured seperator and then a comma seperated list of base64 encoded row keys- Throws:
IOException
-