com.hazelcast.mapreduce
Interface KeyPredicate<Key>
- Type Parameters:
Key
- key type
- All Superinterfaces:
- Serializable
@Beta
public interface KeyPredicate<Key>
- extends Serializable
This interface is used to pre evaluate keys before spreading the MapReduce task to the cluster.
Pre-selecting keys can speed up the job since not all partitions may be used.
- Since:
- 3.2
Method Summary |
boolean |
evaluate(Key key)
This methods implementation contains the evaluation code whether to select a key or not. |
evaluate
boolean evaluate(Key key)
- This methods implementation contains the evaluation code whether to select a key or not.
- Parameters:
key
- The key to evaluate
- Returns:
- true if the MapReduce task should be executed on this key otherwise false
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.