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 method evaluates whether or not to select a key.
 

Method Detail

evaluate

boolean evaluate(Key key)
This method evaluates whether or not to select a key.

Parameters:
key - The key to evaluate
Returns:
true if the MapReduce task should be executed on this key, false otherwise


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.