Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 04-23-2004
dwk dwk is offline
Registered User
 
 
Join Date: Apr 2004
Posts: 2
Freeze map ordering

This is probably more of a Berkely DB question than a Freeze/Ice question, but I'll try anyway..

If I have a Freeze map that is populated initially and then NOT subsequently modified, can I assume an iterator will supply the entries in the order in which they were inserted?

Based on my limited knowledge of Berkely DB, I'd assume in general this won't be true, but *in practice* so far this has been true when the map is created/written in a single session.

My problem is that I'm creating potentially huge data sets that I need to filter/average, and if I can't assume this type of ordering I'll have to resort to other methods to sort prior to filtering which I'd rather avoid.
Reply With Quote
  #2 (permalink)  
Old 04-26-2004
bernard's Avatar
bernard bernard is offline
ZeroC Staff
 
Name: Bernard Normier
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Palm Beach Gardens, FL
Posts: 816
Freeze maps are stored in Berkeley DB databases in B-Tree format. These databases are sorted, using the default sorting (binary comparison of the keys). See http://www.sleepycat.com/docs/api_cx...t_compare.html.

When you iterate over a Map, you will follow this order.

Cheers,
Bernard
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem in C++ include file ordering peter.s Bug Reports 1 03-26-2004 05:09 PM


All times are GMT -4. The time now is 08:24 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.