Indexing other collections (like Set)?

5 views
Skip to first unread message

BenjaminHill

unread,
Mar 31, 2010, 2:02:14 PM3/31/10
to Hazelcast
I noticed that the addIndex method only exists for IMap. Can it be
added to the other collections?
I've got a list of unique objects, and don't have any problems adding
them to a map using any of various key methods (the object's hashCode
method for example) but it seems redundant.

I'd much rather have a Set of unique objects, not use a Key at all,
have the Set complain if I try to insert a duplicate, yet not lose the
addIndex optimizations. Possible? Easy/hard?

Talip Ozturk

unread,
Apr 1, 2010, 10:10:05 AM4/1/10
to haze...@googlegroups.com
Does't sound hard as ISet is implemented on top of IMap. You may want
to add this as an issue (enhancement)
at http://code.google.com/p/hazelcast/issues/

-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.
>
>

BenjaminHill

unread,
Apr 2, 2010, 2:42:07 PM4/2/10
to Hazelcast
Done.
http://code.google.com/p/hazelcast/issues/detail?id=250


On Apr 1, 7:10 am, Talip Ozturk <ta...@hazelcast.com> wrote:
> Does't sound hard as ISet is implemented on top of IMap. You may want
> to add this as an issue (enhancement)

> athttp://code.google.com/p/hazelcast/issues/
>
> -talip

Reply all
Reply to author
Forward
0 new messages