Update of /cvsroot/monetdb/MonetDB5/src/modules/mal/Tests
In directory sc8-pr-cvs16:/tmp/cvs-serv11462/Tests

Added Files:
        bpm09.mal 
Log Message:
Added test for the new commands.For development purposes, not ready for night 
tests.


--- NEW FILE: bpm09.mal ---
# Testing bpm.glue, bpm.new, and bpm.addPartition

R := bat.new(:oid,:sht);
bat.append(R,1:sht);
bat.append(R,3:sht);
bat.append(R,5:sht);
bat.append(R,7:sht);
bat.append(R,11:sht);
Ra:= bpm.deposit("myR",R);

io.print("Range partition it ");
pv:= bat.new(:oid,:sht);
bat.append(pv,0:sht);
bat.append(pv,5:sht);

bpm.rangePartition(Ra,pv);
#bpm.dump();

function user.pr(Ra:bat[:any_1,:any_2]):void;
barrier Rp:= bpm.newIterator(Ra);
        io.print(Rp);
        redo Rp:= bpm.hasMoreElements(Ra);
exit Rp;
end pr;
user.pr(Ra);

g:=bpm.glue(Ra);
io.print(g);

n:=bpm.new(:oid,:int);
user.pr(n);

s:=bat.new(:oid,:int);
bat.append(s,100);
bat.append(s,200);

bpm.addPartition(n,s);
user.pr(n);


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins

Reply via email to