KEYIN
- the input key typeVALUEIN
- the input value typeKEYOUT
- the output key typeVALUEOUT
- the output value typepublic abstract class SegmentedReducer<KEYIN extends SegmentedWritable,VALUEIN extends SegmentedWritable,KEYOUT extends org.apache.hadoop.io.Writable,VALUEOUT extends org.apache.hadoop.io.Writable> extends ReducerWithRuntimeResource<KEYIN,VALUEIN,KEYOUT,VALUEOUT>
SegmentedWritable
as it input key/value.Modifier and Type | Field and Description |
---|---|
static String |
GET_RENDEZVOUS
The method name of
getRendezvous(SegmentedWritable) . |
Constructor and Description |
---|
SegmentedReducer() |
Modifier and Type | Method and Description |
---|---|
protected abstract Rendezvous<VALUEIN> |
getRendezvous(KEYIN key)
Returns the
Rendezvous object for processing the target segment. |
protected void |
reduce(KEYIN key,
Iterable<VALUEIN> values,
org.apache.hadoop.mapreduce.Reducer.Context context) |
run, runInternal
public static final String GET_RENDEZVOUS
getRendezvous(SegmentedWritable)
.protected abstract Rendezvous<VALUEIN> getRendezvous(KEYIN key)
Rendezvous
object for processing the target segment.key
- the segment informationRendezvous
objectprotected void reduce(KEYIN key, Iterable<VALUEIN> values, org.apache.hadoop.mapreduce.Reducer.Context context) throws IOException, InterruptedException
reduce
in class org.apache.hadoop.mapreduce.Reducer<KEYIN extends SegmentedWritable,VALUEIN extends SegmentedWritable,KEYOUT extends org.apache.hadoop.io.Writable,VALUEOUT extends org.apache.hadoop.io.Writable>
IOException
InterruptedException
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.