Bugs item #2059370, was opened at 2008-08-19 11:51
Message generated for change (Comment added) made by mlkersten
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2059370&group_id=56967

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Core
Group: MonetDB5 CVS Head
>Status: Closed
>Resolution: Invalid
Priority: 5
Private: No
Submitted By: Fabian (mr-meltdown)
Assigned to: Martin Kersten (mlkersten)
Summary: M5: bat.batSize() broken?

Initial Comment:
I'm not sure if this behaviour is intended:

b := bat.new(:str, :int);
s := bat.getSize(b);
io.print(s);
bat.insert(b, "test", 1);
s := bat.getSize(b);
io.print(s);

it returns twice the same value:
[ 24576 ]
[ 24576 ]


(question: how do I retrieve the number of BUNs in a BAT?)

----------------------------------------------------------------------

>Comment By: Martin Kersten (mlkersten)
Date: 2008-08-20 08:51

Message:
Logged In: YES 
user_id=490798
Originator: NO

The current getSize calculates the storage based on
rounding it to pagesizes. 
Given the change in BBP storage structures, the
getSize and getDiskSize have been upgraded.

The capacity of the BAT can be obtained with bat.getCapacity()
and the number of elements with aggr.count()
The page size can be obtained with bbp.getPageSize()

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2059370&group_id=56967

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs

Reply via email to