Update of /cvsroot/monetdb/MonetDB4/src/modules/plain
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv31729/src/modules/plain
Modified Files:
algebra.mx
Log Message:
add mil wrapper for new rangejoin
Index: algebra.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB4/src/modules/plain/algebra.mx,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- algebra.mx 12 Dec 2007 20:05:53 -0000 1.6
+++ algebra.mx 21 Dec 2007 15:13:56 -0000 1.7
@@ -386,6 +386,15 @@
the left-tail value is within the range [right-head - minus,
right-head + plus]\n
Works only for the builtin numerical types, and their derivates."
+
+.COMMAND join ( BAT[any::1,any::2] l,
+ BAT[any::3,any::2] rl,
+ BAT[any::3,any::2] rh, bit l_in, bit h_in) :
+ BAT[any::1,any::3] = CMDrangejoin;
+"Range join ie { rl <[=] l <[=] rh }.
+Either boundary value is included ('<=') if the respective bit (l_in / h_in)
+is TRUE, and excluded ('<') otherwise."
+
@+ OID Introducing Commands
For relational processing, some operators are necessary to produce newly
initiated OID columns, for representing n-ary (intermediary) relations.
@@ -1399,6 +1408,7 @@
@c
#include "monetdb4_config.h"
#include "algebra.h"
+#include "gdk_rangejoin.h"
@+ Minimum and Maximum
The routines @[EMAIL PROTECTED](b) and @[EMAIL PROTECTED](b) compute the
minimum and
@@ -1698,6 +1708,12 @@
return (*result = BATbandjoin(left, right, minus, plus)) ? GDK_SUCCEED
: GDK_FAIL;
}
+int
+CMDrangejoin(BAT **result, BAT *left, BAT *rl, BAT *rh, bit *li, bit *hi)
+{
+ return (*result = BATrangejoin(left, rl, rh, *li, *hi)) ? GDK_SUCCEED :
GDK_FAIL;
+}
+
@-
Let's cut this text down with some Mx macros
@= unary
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins