Interface PartitionPredicate<K,​V>

Type Parameters:
K - type of the entry key
V - type of the entry value
All Superinterfaces:
Predicate<K,​V>, Serializable

public interface PartitionPredicate<K,​V>
extends Predicate<K,​V>
A Predicate that restricts the execution of a Predicate to a single partition. This can help to speed up query execution since only a single instead of all partitions needs to be queried. This predicate only has effect if used as an outermost predicate.
See Also:
Predicates.partitionPredicate(Object, Predicate)
  • Method Details

    • getPartitionKey

      Object getPartitionKey()
      Returns the partition key that determines the partition the target Predicate is going to execute on.
      the partition key
    • getTarget

      Predicate<K,​V> getTarget()
      Returns the target Predicate.