com.hazelcast.mapreduce.impl.task
Class MappingPhase<KeyIn,ValueIn,KeyOut,ValueOut>
java.lang.Object
com.hazelcast.mapreduce.impl.task.MappingPhase<KeyIn,ValueIn,KeyOut,ValueOut>
- Type Parameters:
KeyIn
- type of the input keyValueIn
- type of the input valueKeyOut
- type of the emitted keyValueOut
- type of the emitted value
- Direct Known Subclasses:
- KeyValueSourceMappingPhase
public abstract class MappingPhase<KeyIn,ValueIn,KeyOut,ValueOut>
- extends Object
This is the base of all mapping phase implementations. It's responsibility is to test keys
prior to mapping the special value. This is used for preselected key-sets and given
KeyPredicate
implementations.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MappingPhase
public MappingPhase(Collection<KeyIn> keys,
KeyPredicate<KeyIn> predicate)
cancel
public void cancel()
isCancelled
protected boolean isCancelled()
matches
protected boolean matches(KeyIn key)
executeMappingPhase
protected abstract void executeMappingPhase(KeyValueSource<KeyIn,ValueIn> keyValueSource,
Mapper<KeyIn,ValueIn,KeyOut,ValueOut> mapper,
Context<KeyOut,ValueOut> context)
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.