com.hazelcast.mapreduce.impl.task
Class ReducerTask<Key,Chunk>
java.lang.Object
com.hazelcast.mapreduce.impl.task.ReducerTask<Key,Chunk>
- Type Parameters:
Key
- type of the emitted keyChunk
- type of the intermediate chunk data
- All Implemented Interfaces:
- Runnable
public class ReducerTask<Key,Chunk>
- extends Object
- implements Runnable
This task implementation executes the reducing phase. It collects all arriving chunks and processes them
one by one. There is one ReducerTask per job per node to have a clear idea of the resulting load a job
may create.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReducerTask
public ReducerTask(String name,
String jobId,
JobSupervisor supervisor)
getName
public String getName()
getJobId
public String getJobId()
cancel
public void cancel()
processChunk
public void processChunk(Map<Key,Chunk> chunk)
processChunk
public void processChunk(int partitionId,
Address sender,
Map<Key,Chunk> chunk)
run
public void run()
- Specified by:
run
in interface Runnable
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.