May be bugs in Query

15 views
Skip to first unread message

Romain

unread,
Dec 15, 2009, 7:48:28 AM12/15/09
to haze...@googlegroups.com
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

AppTest.java
Employee.java

Talip Ozturk

unread,
Dec 15, 2009, 4:39:37 PM12/15/09
to hazelcast
yes you are right.. it was a bug. download and try the 1.8 final, it
is fixed already.

please create an issue (new_feature) for LIMIT.. shouldn't be that hard.

-talip
> --
>
> You received this message because you are subscribed to the Google Groups
> "Hazelcast" group.
> To post to this group, send email to haze...@googlegroups.com.
> To unsubscribe from this group, send email to
> hazelcast+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/hazelcast?hl=en.
>

Ro Fili

unread,
Dec 18, 2009, 10:21:03 AM12/18/09
to Hazelcast
Thanks

I will do it

Romain

On 15 déc, 22:39, Talip Ozturk <ta...@hazelcast.com> wrote:
> yes you are right.. it was a bug. download and try the 1.8 final, it
> is fixed already.
>
> please create an issue (new_feature) for LIMIT.. shouldn't be that hard.
>
> -talip
>

Reply all
Reply to author
Forward
0 new messages