I - type of input receivedK - type of intermediate keys producedV - type of intermediate values producedpublic abstract class Mapper<I,K,V> extends Worker<C>
Reducer through the
MapperContext.
This class is really an interface that might be evolving. In order to avoid breaking users when we change the interface, we made it an abstract class.
| Constructor and Description |
|---|
Mapper() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
emit(K key,
V value)
Syntactic sugar for
emit(KeyValue.of(key, value)) |
protected void |
emit(O value)
Syntactic sugar for
getContext().emit(value) |
abstract void |
map(I value)
Processes a single input value, emitting output through the context returned by
Worker.getContext() or emit(O). |
allowSliceRetry, beginShard, beginSlice, endShard, endSlice, estimateMemoryRequirement, getContext, setContextpublic abstract void map(I value)
Worker.getContext() or emit(O).protected void emit(O value)
getContext().emit(value)Copyright © 2015 Google. All rights reserved.