Hey everybody !
I have tested Hazelcast yesterday. It's a really great tool :)
Unfortunately I meet some difficulties when dealing with Queries with the 1.8 SNAPSHOT.
I join my JUnit test files if you want to check it quickly.
To be brief :
new SqlPredicate("active AND name=toto-super-hero") load the system a lot because of the dashes. Without dashes it works just well. Hopefully : Predicate predicate =
e.is("active").and(e.get("name").equal("toto-super-hero")); works.
And I have some difficulties using Generics like this :
IMap<String, Employee> map = Hazelcast.getMap("employee");
Set<Employee> employees = (Set<Employee>) map.values(new SqlPredicate("active"));
It just doesn't want to compile.
I don't know if those things was known before.
But congratulation to the Hazelcast developers. I really like what you did :)
One last thing, is LIMIT (like the SQL LIMIT) will be implemented in Predicates?
Cheers
Romain