On Tue, Dec 04, 2007 at 08:16:31PM +0100, Martin Kersten wrote:
Second question: Which function I should call for: b.reverse().seqbase(0@0);
In MAL I did rev := bat.reverse(b); base := bat.setBase(rev,0@0);
But the bat.setBase is comment in bat5.mal, so what function should I use?
markH
setSequenceBase()..... use the MAL appendix to find the functions using a grep on the comments
a:=bat.new(:void,:int); b:=bat.setSequenceBase(a,0@0); !TypeException:user.main[1]:'bat.setSequenceBase' undefined in: b:any := bat.setSequenceBase(a:bat[:void,:int], _3:oid) manual.help("setSequenceBase"); manual.search("setSequenceBase"); bat.se command bat.setKey(b:bat[:any_1,:any_2],mode:bit):bat[:any_1,:any_2] command bat.setSet(b:bat[:any_1,:any_2],mode:bit):bat[:any_1,:any_2] command bat.setAccess(b:bat[:any_1,:any_2],mode:str):bat[:any_1,:any_2] command bat.setAppendMode(b:bat[:any_1,:any_2]):bat[:any_1,:any_2] command bat.setReadMode(b:bat[:any_1,:any_2]):bat[:any_1,:any_2] command bat.setWriteMode(b:bat[:any_1,:any_2]):bat[:any_1,:any_2] command bat.setSorted(b:bat[:any_1,:any_2]):bit command bat.setName(b:bat[:any_1,:any_2],s:str):void command bat.setRole(b:bat[:any_1,:any_2],h:str,t:str):void command bat.setColumn(b:bat[:any_1,:any_2],t:str):void command bat.setColumn(b:bat[:any_1,:any_2],h:str,t:str):void command bat.setTransient(b:bat[:any_1,:any_2]):void command bat.setPersistent(b:bat[:any_1,:any_2],f:bit):void command bat.setPersistent(b:bat[:any_1,:any_2]):void command bat.setCold(b:bat[:any_1,:any_1]):void command bat.setHot(b:bat[:any_1,:any_2]):void command bat.setMemoryMap(b:bat[:any_1,:any_2],buns_mode:int,hheap_mode:int,theap_mode:int):bit command bat.setMemoryMap(b:bat[:any_1,:any_2],mode:int):bit command bat.setMemoryAdvise(b:bat[:any_1,:any_2],buns_mode:int,hheap_mode:int,theap_mode:int):bit command bat.setMemoryAdvise(b:bat[:any_1,:any_2],mode:int):bit command bat.setHash(b:bat[:any_1,:any_2],prop:bit):bit
======== # MonetDB server v5.3.0, based on kernel v1.21.0 # Serving database 'demo' # Compiled for x86_64-redhat-linux-gnu/64bit with 64bit OIDs dynamically linked # Copyright (c) 1993-2007 CWI, all rights reserved # Visit http://monetdb.cwi.nl/ for further information #warning: please don't forget to set your vault key! #(see /ufs/manegold/_/scratch0/Monet/Testing/Current/prefix.--enable-strict_--disable-optimize_--enable-debug_--enable-assert/etc/monetdb5.conf) # Listening for connection requests on mapi:monetdb://127.0.0.1:50000/ pattern bat.setGarbage(b:bat[:any_1,:any_2]):void pattern bat.setBase(b:bat[:any_1,:any_2],c:bat[:any_1,:any_2]...):void command batmtime.seconds(d:bat[:any_1,:date]):bat[:any_1,:int] command batcalc.search(s:bat[:oid,:str],c:bat[:oid,:str]):bat[:oid,:int] command batcalc.search(s:bat[:oid,:str],c:str):bat[:oid,:int]
bat.setS command bat.setSet(b:bat[:any_1,:any_2],mode:bit):bat[:any_1,:any_2] command bat.setSorted(b:bat[:any_1,:any_2]):bit bat.setS command bat.setSet(b:bat[:any_1,:any_2],mode:bit):bat[:any_1,:any_2] command bat.setSorted(b:bat[:any_1,:any_2]):bit b:=bat.setBase(a,0@0); !TypeException:user.main[1]:'bat.setBase' undefined in: b:any := bat.setBase(a:bat[:void,:int], _3:oid) c:=bat.getSequenceBase(a); !TypeException:user.main[1]:'bat.getSequenceBase' undefined in: c:any := bat.getSequenceBase(a:bat[:void,:int]) manual.help("getSequenceBase"); bat.getSequenceBase manual.search("getSequenceBase"); command bat.getSequenceBase(b:bat[:oid,:any_1]):oid address BKCgetSequenceBase; #Get the sequence base for the void column of a BAT. ========
a:=bat.new(:void,:int); b:=bat.setBase(a,0@0); !TypeException:user.main[1]:'bat.setBase' undefined in: b:any := bat.setBase(a:bat[:void,:int], _3:oid) manual.search("setBase");
Moreover, http://monetdb.cwi.nl/MonetDB/Documentation/Instruction-Summary.html#Instruc... and http://monetdb.cwi.nl/MonetDB/Documentation/Instruction-Help.html list bat.getSequenceBase() and bat.setBase(), but no bat.setSequenceBase(). But: ======== # MonetDB server v5.3.0, based on kernel v1.21.0 # Serving database 'demo' # Compiled for x86_64-redhat-linux-gnu/64bit with 64bit OIDs dynamically linked # Copyright (c) 1993-2007 CWI, all rights reserved # Visit http://monetdb.cwi.nl/ for further information #warning: please don't forget to set your vault key! #(see /ufs/manegold/_/scratch0/Monet/Testing/Current/prefix.--enable-strict_--disable-optimize_--enable-debug_--enable-assert/etc/monetdb5.conf) # Listening for connection requests on mapi:monetdb://127.0.0.1:50000/ pattern bat.setBase(b:bat[:any_1,:any_2],c:bat[:any_1,:any_2]...):void address CMDsetBase; #Give the non-empty BATs consecutive oid bases
c:=bat.append(a,1); b:=bat.setBase(c,0@0); !TypeException:user.main[1]:'bat.setBase' undefined in: b:any := bat.setBase(c:void, _4:oid) b:=bat.setBase(a,0@0); !TypeException:user.main[1]:'bat.setBase' undefined in: b:any := bat.setBase(a:bat[:void,:int], _4:oid)
======== ... I'm slightly puzzled ... ? Stefan -- | Dr. Stefan Manegold | mailto:Stefan.Manegold@cwi.nl | | CWI, P.O.Box 94079 | http://www.cwi.nl/~manegold/ | | 1090 GB Amsterdam | Tel.: +31 (20) 592-4212 | | The Netherlands | Fax : +31 (20) 592-4312 |