Changeset: 904d845c1bca for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=904d845c1bca
Modified Files:
        monetdb5/modules/kernel/algebra.c
        monetdb5/modules/kernel/algebra.h
        monetdb5/modules/kernel/algebra.mal
Branch: compressedcandidates
Log Message:

Introduce place holders for MSK thetaselect


diffs (62 lines):

diff --git a/monetdb5/modules/kernel/algebra.c 
b/monetdb5/modules/kernel/algebra.c
--- a/monetdb5/modules/kernel/algebra.c
+++ b/monetdb5/modules/kernel/algebra.c
@@ -295,12 +295,24 @@ ALGthetaselect2(bat *result, const bat *
 }
 
 str
+ALGthetaselectMsk2(bat *result, const bat *bid, const bat *sid, const void 
*val, const char **op)
+{
+       return ALGthetaselect2(result, bid, sid, val, op);
+}
+
+str
 ALGthetaselect1(bat *result, const bat *bid, const void *val, const char **op)
 {
        return ALGthetaselect2(result, bid, NULL, val, op);
 }
 
 str
+ALGthetaselectMsk1(bat *result, const bat *bid, const void *val, const char 
**op)
+{
+       return ALGthetaselectMsk2(result, bid, NULL, val, op);
+}
+
+str
 ALGselectNotNil(bat *result, const bat *bid)
 {
        BAT *b, *bn = NULL;
diff --git a/monetdb5/modules/kernel/algebra.h 
b/monetdb5/modules/kernel/algebra.h
--- a/monetdb5/modules/kernel/algebra.h
+++ b/monetdb5/modules/kernel/algebra.h
@@ -25,7 +25,9 @@ mal_export str ALGcard(lng *result, cons
 mal_export str ALGselect1(bat *result, const bat *bid, const void *low, const 
void *high, const bit *li, const bit *hi, const bit *anti);
 mal_export str ALGselect2(bat *result, const bat *bid, const bat *sid, const 
void *low, const void *high, const bit *li, const bit *hi, const bit *anti);
 mal_export str ALGthetaselect1(bat *result, const bat *bid, const void *val, 
const char **op);
+mal_export str ALGthetaselectMsk1(bat *result, const bat *bid, const void 
*val, const char **op);
 mal_export str ALGthetaselect2(bat *result, const bat *bid, const bat *sid, 
const void *val, const char **op);
+mal_export str ALGthetaselectMsk2(bat *result, const bat *bid, const bat *sid, 
const void *val, const char **op);
 
 mal_export str ALGjoin(bat *r1, bat *r2, const bat *l, const bat *r, const bat 
*sl, const bat *sr, const bit *nil_matches, const lng *estimate);
 mal_export str ALGleftjoin(bat *r1, bat *r2, const bat *l, const bat *r, const 
bat *sl, const bat *sr, const bit *nil_matches, const lng *estimate);
diff --git a/monetdb5/modules/kernel/algebra.mal 
b/monetdb5/modules/kernel/algebra.mal
--- a/monetdb5/modules/kernel/algebra.mal
+++ b/monetdb5/modules/kernel/algebra.mal
@@ -70,6 +70,8 @@ comment "Select all head values of the f
        Note that the output is suitable as second input for this
        function.";
 
+command thetaselect(b:bat[:any_1], val:any_1, op:str) :bat[:msk]
+address ALGthetaselectMsk1;
 command thetaselect(b:bat[:any_1], val:any_1, op:str) :bat[:oid]
 address ALGthetaselect1
 comment "Select all head values for which the tail value obeys the relation
@@ -78,6 +80,8 @@ comment "Select all head values for whic
        the tail the head value of the input BAT for which the
        relationship holds.  The output BAT is sorted on the tail value.";
 
+command thetaselect(b:bat[:any_1], s:bat[:oid], val:any_1, op:str) :bat[:msk]
+address ALGthetaselectMsk2;
 command thetaselect(b:bat[:any_1], s:bat[:oid], val:any_1, op:str) :bat[:oid]
 address ALGthetaselect2
 comment "Select all head values of the first input BAT for which the tail value
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to