I'm new to Hazelcast - evaluation and prototyping to find out if it meets the requirements for distributed memory. One of the requirements was the use of wild cards to search for keys on this card. By looking at the IMap documentation, you can use keySet (predicate predicate). But I could not figure out how to use Predicate in such a way that, given the wild card string, a keySet was returned containing all the relevant keys. An example will be helpful.
Excerpt from my code. This is the client side.
IMap<String, String> mapTest1 = client.getMap("testMap"); mapTest1.put( "testKey1", "This is a Test" ); mapTest1.put( "testKey2", "This value has a long key name" ); mapTest1.put( "key3", "Another value" );
Thanks.
source share