Stefan Manegold wrote:
> On Tue, Dec 04, 2007 at 08:16:31PM +0100, Martin Kersten wrote:
>>>> Second question: Which function I should call for:
>>>> b.reverse().seqbase([EMAIL PROTECTED]);
>>>>
>>>> In MAL I did
>>>>      rev := bat.reverse(b);
>>>>      base := bat.setBase(rev,[EMAIL PROTECTED]);
>>>>
>>>> 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
bat5.mal:#command setSequenceBase( b:bat[:oid,:any_1], base:oid):void
This command is comment so it not exist...

Thanks for the explanation Stefan ;)

Regards,
Romulo
> 
> ========
> # 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/
>> a:=bat.new(:void,:int);
>> b:=bat.setSequenceBase(a,[EMAIL PROTECTED]);
> !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 
> 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,[EMAIL PROTECTED]);
> !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.
> ========
> 
> Moreover,
> http://monetdb.cwi.nl/MonetDB/Documentation/Instruction-Summary.html#Instruction-Summary
> 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/
>> a:=bat.new(:void,:int);
>> b:=bat.setBase(a,[EMAIL PROTECTED]);
> !TypeException:user.main[1]:'bat.setBase' undefined in: b:any := 
> bat.setBase(a:bat[:void,:int], _3:oid)
>> manual.search("setBase");
> 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,[EMAIL PROTECTED]);
> !TypeException:user.main[1]:'bat.setBase' undefined in: b:any := 
> bat.setBase(c:void, _4:oid)
>> b:=bat.setBase(a,[EMAIL PROTECTED]);
> !TypeException:user.main[1]:'bat.setBase' undefined in: b:any := 
> bat.setBase(a:bat[:void,:int], _4:oid)
> 
> ========
> 
> ... I'm slightly puzzled ... ?
> 
> Stefan
> 


-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Monetdb-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-developers

Reply via email to