SortedSet

424 views
Skip to first unread message

Kevin Jordan

unread,
Aug 11, 2010, 5:13:12 PM8/11/10
to Hazelcast
What's the best way to get a SortedSet in Hazelcast? Hazelcast.getSet
appears to return a regular one. Do I need to create one and put it
in a data structure the Hazelcast.get* methods return?

Talip Ozturk

unread,
Aug 11, 2010, 7:03:08 PM8/11/10
to haze...@googlegroups.com
There is no sorted-set implementation in Hazelcast.

If you are creating it one and not adding much (mostly iterating and
reading) then create a sorted-set locally and put it into
Hazelcast-Queue for sorted iteration. (removes are fine but you should
not be adding as it will break the sorting)

If you are updating the set a lot then you will have to work with
existing Hazelcast Set (unsorted) and sort them locally each time you
use it. (reads are expensive).

Neither of the two sounds good but distributed sorted set is quite
challenging by definition.

twitter @oztalip

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

Reply all
Reply to author
Forward
0 new messages