You can use the query interfaces in the monitoring console and in the xscmd utility to retrieve small sets of keys and values from a map and invalidate sets of data.
xscmd.sh –c findbykey –g <data_grid> -m <map>
-fs <find_string> [-fp <partitionid>]
You
must include the data grid, map, and regular expression for the find
string value. You can also filter on the partition ID. The result
returns a subset of the entire query.xscmd –c findbykey –g <data_grid> -m <map>
-fs <find_string> [-fp <partitionid>] -inv
You
must include the data grid, map, and regular expression for the find
string value. You can also filter on the partition ID. When you run
the invalidation, all matching values are invalidated, not just the
small set that is returned by the query.xscmd.sh –c findbykey –g <data_grid> -m <map>
-fs <find_string> -rv
You must include
the data grid, map, and regular expression for the find string value.
You can also filter on the partition ID. The result returns a subset
of the entire query and includes the values for each key.xscmd -c findbykey -g Grid -m Map1 -fs ".*"
3 matching keys were found.
Partition Key
--------- ---
2 keyghi
4 keydef
6 keyabc