com.hazelcast.mapreduce.impl.task
Class MapCombineTask<KeyIn,ValueIn,KeyOut,ValueOut,Chunk>
java.lang.Object
com.hazelcast.mapreduce.impl.task.MapCombineTask<KeyIn,ValueIn,KeyOut,ValueOut,Chunk>
- Type Parameters:
KeyIn
- type of the input keyValueIn
- type of the input valueKeyOut
- type of the emitted keyValueOut
- type of the emitted valueChunk
- type of the intermediate chunk (retrieved from combiners)
public class MapCombineTask<KeyIn,ValueIn,KeyOut,ValueOut,Chunk>
- extends Object
This class acutally executed the mapping-combine phase. It is responsible for opening / closing
the KeyValueSource
implementation and possible configuring the
partitionId to operate on.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MapCombineTask
public MapCombineTask(JobTaskConfiguration configuration,
JobSupervisor supervisor,
MappingPhase<KeyIn,ValueIn,KeyOut,ValueOut> mappingPhase)
getName
public String getName()
getJobId
public String getJobId()
getChunkSize
public int getChunkSize()
cancel
public void cancel()
process
public void process()
processMapping
public final void processMapping(int partitionId,
DefaultContext<KeyOut,ValueOut> context,
KeyValueSource<KeyIn,ValueIn> keyValueSource)
throws Exception
- Throws:
Exception
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.