K - the type of the keyV - the type of the valuepublic class IdentityReducer<K,V> extends Reducer<K,V,KeyValue<K,List<V>>>
| Constructor and Description |
|---|
IdentityReducer(int maxGroupedValues) |
| Modifier and Type | Method and Description |
|---|---|
void |
reduce(K key,
ReducerInput<V> values)
Processes the values for a given key, using the context returned by
Worker.getContext() to emit output to the Output of the MapReduce. |
allowSliceRetry, beginShard, beginSlice, endShard, endSlice, estimateMemoryRequirement, getContext, setContextpublic IdentityReducer(int maxGroupedValues)
maxGroupedValues - The number of consecutive values that will be grouped together in a
single emit call. If there are more than this number of values emit will be called
multiple times with the same key.public void reduce(K key, ReducerInput<V> values)
ReducerWorker.getContext() to emit output to the Output of the MapReduce.
values enumerates all values that the map phase produced for the
key key. It will always contain at least one value.Copyright © 2015 Google. All rights reserved.