@InterfaceAudience.Public public class PutSortReducer extends org.apache.hadoop.mapreduce.Reducer<ImmutableBytesWritable,Put,ImmutableBytesWritable,KeyValue>
HFileOutputFormat2
,
CellSortReducer
Modifier and Type | Field and Description |
---|---|
private CellCreator |
kvCreator |
Constructor and Description |
---|
PutSortReducer() |
Modifier and Type | Method and Description |
---|---|
protected void |
reduce(ImmutableBytesWritable row,
Iterable<Put> puts,
org.apache.hadoop.mapreduce.Reducer.Context context) |
protected void |
setup(org.apache.hadoop.mapreduce.Reducer.Context context) |
private CellCreator kvCreator
public PutSortReducer()
protected void setup(org.apache.hadoop.mapreduce.Reducer.Context context) throws IOException, InterruptedException
setup
in class org.apache.hadoop.mapreduce.Reducer<ImmutableBytesWritable,Put,ImmutableBytesWritable,KeyValue>
IOException
InterruptedException
protected void reduce(ImmutableBytesWritable row, Iterable<Put> puts, org.apache.hadoop.mapreduce.Reducer.Context context) throws IOException, InterruptedException
reduce
in class org.apache.hadoop.mapreduce.Reducer<ImmutableBytesWritable,Put,ImmutableBytesWritable,KeyValue>
IOException
InterruptedException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.