com.hazelcast.map.impl
Interface MapContextQuerySupport


public interface MapContextQuerySupport

Support interface which is used in map specific query operations.


Method Summary
 Set query(String mapName, Predicate predicate, IterationType iterationType, boolean dataResult)
          Used for predicates which queries on all members, except paging predicate.
 Set queryLocalMember(String mapName, Predicate predicate, IterationType iterationType, boolean dataResult)
          Used for predicates which queries on node local entries, except paging predicate.
 Set queryLocalMemberWithPagingPredicate(String mapName, PagingPredicate pagingPredicate, IterationType iterationType)
          Used for paging predicate queries on node local entries.
 Collection<QueryableEntry> queryOnPartition(String mapName, Predicate predicate, int partitionId)
          Query a specific partition.
 Set queryWithPagingPredicate(String mapName, PagingPredicate pagingPredicate, IterationType iterationType)
          Used for paging predicate queries on all members.
 

Method Detail

queryOnPartition

Collection<QueryableEntry> queryOnPartition(String mapName,
                                            Predicate predicate,
                                            int partitionId)
Query a specific partition.

Parameters:
mapName - map name.
predicate - any predicate.
partitionId - partition id.
Returns:
result of query

queryLocalMember

Set queryLocalMember(String mapName,
                     Predicate predicate,
                     IterationType iterationType,
                     boolean dataResult)
Used for predicates which queries on node local entries, except paging predicate.

Parameters:
mapName - map name.
predicate - except paging predicate.
iterationType - type of IterationType
dataResult - true if results should contain Data types, false for object types.
Returns:
QueryResultSet

queryLocalMemberWithPagingPredicate

Set queryLocalMemberWithPagingPredicate(String mapName,
                                        PagingPredicate pagingPredicate,
                                        IterationType iterationType)
Used for paging predicate queries on node local entries.

Parameters:
mapName - map name.
pagingPredicate - to queryOnMembers.
iterationType - type of IterationType
Returns:
SortedQueryResultSet

queryWithPagingPredicate

Set queryWithPagingPredicate(String mapName,
                             PagingPredicate pagingPredicate,
                             IterationType iterationType)
Used for paging predicate queries on all members.

Parameters:
mapName - map name.
pagingPredicate - to queryOnMembers.
iterationType - type of IterationType
Returns:
SortedQueryResultSet

query

Set query(String mapName,
          Predicate predicate,
          IterationType iterationType,
          boolean dataResult)
Used for predicates which queries on all members, except paging predicate.

Parameters:
mapName - map name.
predicate - except paging predicate.
iterationType - type of IterationType
dataResult - true if results should contain Data types, false for object types.
Returns:
QueryResultSet


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