I
- type of input values consumed by this mapperK
- type of intermediate keys produced by this mapperV
- type of intermediate values produced by this mapperpublic class MapShardTask<I,K,V> extends WorkerShardTask<I,KeyValue<K,V>,MapperContext<K,V>>
claimedMemory, LIMITER
Constructor and Description |
---|
MapShardTask(String mrJobId,
int shardNumber,
int shardCount,
InputReader<I> in,
Mapper<I,K,V> mapper,
OutputWriter<KeyValue<K,V>> out,
long millisPerSlice) |
Modifier and Type | Method and Description |
---|---|
boolean |
allowSliceRetry(boolean abandon) |
protected void |
callWorker(I input) |
protected long |
estimateMemoryRequirement() |
protected String |
formatLastWorkItem(I item) |
InputReader<I> |
getInputReader() |
OutputWriter<KeyValue<K,V>> |
getOutputWriter() |
protected Worker<MapperContext<K,V>> |
getWorker() |
void |
jobCompleted(Status status)
A job completed callback to allow resource cleanup and compaction of the finalized state.
|
protected boolean |
shouldCheckpoint(long timeElapsed) |
abbrev, cleanup, getContext, isDone, prepare, run, setFinalized, toString, wasFinalized
protected void callWorker(I input)
callWorker
in class WorkerShardTask<I,KeyValue<K,V>,MapperContext<K,V>>
protected String formatLastWorkItem(I item)
formatLastWorkItem
in class WorkerShardTask<I,KeyValue<K,V>,MapperContext<K,V>>
protected boolean shouldCheckpoint(long timeElapsed)
shouldCheckpoint
in class WorkerShardTask<I,KeyValue<K,V>,MapperContext<K,V>>
protected long estimateMemoryRequirement()
estimateMemoryRequirement
in class WorkerShardTask<I,KeyValue<K,V>,MapperContext<K,V>>
protected Worker<MapperContext<K,V>> getWorker()
getWorker
in class WorkerShardTask<I,KeyValue<K,V>,MapperContext<K,V>>
public OutputWriter<KeyValue<K,V>> getOutputWriter()
getOutputWriter
in class WorkerShardTask<I,KeyValue<K,V>,MapperContext<K,V>>
public InputReader<I> getInputReader()
getInputReader
in class WorkerShardTask<I,KeyValue<K,V>,MapperContext<K,V>>
public boolean allowSliceRetry(boolean abandon)
abandon
- true if a retry is due to an abandoned lock.public void jobCompleted(Status status)
IncrementalTask
status
- the status of the jobCopyright © 2015 Google. All rights reserved.