Update of /cvsroot/monetdb/MonetDB5/src/modules/mal
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv24617
Modified Files:
mal_init.mx mal_io.mx
Log Message:
finishing touch for handling with inline tuple batches
Index: mal_io.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/modules/mal/mal_io.mx,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- mal_io.mx 11 Jan 2008 10:41:37 -0000 1.18
+++ mal_io.mx 20 Jan 2008 08:26:19 -0000 1.19
@@ -114,6 +114,11 @@
command printf(format:str,val:str):void
address IOprint_formatted_str;
+command data(fname:str):str
+address IOdatafile
+comment "Signals receipt of tuples in a file fname.
+It returns the name of the file, if it still exists."
+
command export(b:bat[:any_1,:any_2], filepath:str):bit
address IOexport
comment "Export a BAT as ASCII to a file. If the 'filepath' is not absolute, it
@@ -186,6 +191,7 @@
io_export str IOprint_oid(int *ret, ptr fmt, oid *s);
io_export str IOprint_formatted_bit(int *ret, ptr fmt, bit *s);
io_export str IOexport(int *ret, int *bid, str *fnme);
+io_export str IOdatafile(str *ret, str *fnme);
io_export str IOimport(int *ret, int *bid, str *fnme);
io_export str io_stdin(bstream **ret);
io_export str io_stdout(stream **ret);
@@ -692,6 +698,19 @@
presented.
@c
str
+IOdatafile(str *ret, str *fnme){
+ stream *s = open_rstream(*fnme);
+ if (s == NULL || stream_errnr(s)) {
+ *ret = 0;
+ throw(MAL, "io.export", "Could not open file");
+ }
+ *ret= GDKstrdup(*fnme);
+ stream_close(s);
+ stream_destroy(s);
+ return MAL_SUCCEED;
+}
+
+str
IOexport(int *ret, int *bid, str *fnme)
{
BAT *b;
Index: mal_init.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/modules/mal/mal_init.mx,v
retrieving revision 1.125
retrieving revision 1.126
diff -u -d -r1.125 -r1.126
--- mal_init.mx 14 Jan 2008 22:24:15 -0000 1.125
+++ mal_init.mx 20 Jan 2008 08:26:19 -0000 1.126
@@ -212,7 +212,7 @@
include opt_crack;
include opt_joinselect;
include opt_remoteQueries;
-include crackers;
+#include crackers;
include xml;
include batxml;
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins