Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 1,415
Registered: ‎07-30-2008
My Device: Not Specified

RIM bigsortedreadablelist- anyone used this much? / SQL or DB people?

[ Edited ]

 

 

RIM has this class that exists since at least 4.1 for doing indicies,

 

http://www.blackberry.com/developers/docs/4.1api/net/rim/device/api/collection/util/BigSortedReadabl...

 

but it doesn't appear to implement persistable and has the overhead of comparator functions which may or may not

be a big deal.  [ ed, apparently the underlying collection may implement persistable as this seems to work with

a an implementor of a collection interface ]

  Personally I like my interface better ( outlined in prior set of posts on similar topic )  but

if you can do this in native code you stand to gain a lot of performance.

 

Binary search comes up in RIM docs in these places,

 

$ grep -il "binary.*search" *.txt
index-all.txt
net_rim_device_api_collection_util_BigIntVector.txt
net_rim_device_api_collection_util_BigLongVector.txt
net_rim_device_api_collection_util_BigSortedReadableList.txt
net_rim_device_api_collection_util_BigVector.txt
net_rim_device_api_ui_container_VerticalFieldManager.txt
net_rim_device_api_util_Arrays.txt
net_rim_device_api_util_SimpleSortingIntVector.txt

 

Message Edited by marchywka on 04-06-2009 10:01 PM