Class PutSortReducer
java.lang.Object
org.apache.hadoop.mapreduce.Reducer<ImmutableBytesWritable,Put,ImmutableBytesWritable,KeyValue>
org.apache.hadoop.hbase.mapreduce.PutSortReducer
@Public
public class PutSortReducer
extends org.apache.hadoop.mapreduce.Reducer<ImmutableBytesWritable,Put,ImmutableBytesWritable,KeyValue>
Emits sorted Puts. Reads in all Puts from passed Iterator, sorts them, then emits Puts in sorted
order. If lots of columns per row, it will use lots of memory sorting.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Reducer
org.apache.hadoop.mapreduce.Reducer.Context
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
reduce
(ImmutableBytesWritable row, Iterable<Put> puts, org.apache.hadoop.mapreduce.Reducer<ImmutableBytesWritable, Put, ImmutableBytesWritable, KeyValue>.org.apache.hadoop.mapreduce.Reducer.Context context) protected void
setup
(org.apache.hadoop.mapreduce.Reducer<ImmutableBytesWritable, Put, ImmutableBytesWritable, KeyValue>.org.apache.hadoop.mapreduce.Reducer.Context context) Methods inherited from class org.apache.hadoop.mapreduce.Reducer
cleanup, run
-
Field Details
-
kvCreator
-
-
Constructor Details
-
PutSortReducer
public PutSortReducer()
-
-
Method Details
-
setup
protected void setup(org.apache.hadoop.mapreduce.Reducer<ImmutableBytesWritable, Put, throws IOException, InterruptedExceptionImmutableBytesWritable, KeyValue>.org.apache.hadoop.mapreduce.Reducer.Context context) - Overrides:
setup
in classorg.apache.hadoop.mapreduce.Reducer<ImmutableBytesWritable,
Put, ImmutableBytesWritable, KeyValue> - Throws:
IOException
InterruptedException
-
reduce
protected void reduce(ImmutableBytesWritable row, Iterable<Put> puts, org.apache.hadoop.mapreduce.Reducer<ImmutableBytesWritable, Put, throws IOException, InterruptedExceptionImmutableBytesWritable, KeyValue>.org.apache.hadoop.mapreduce.Reducer.Context context) - Overrides:
reduce
in classorg.apache.hadoop.mapreduce.Reducer<ImmutableBytesWritable,
Put, ImmutableBytesWritable, KeyValue> - Throws:
IOException
InterruptedException
-