Changeset: e616906f3890 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=e616906f3890 Modified Files: monetdb5/extras/rdf/rdf.h monetdb5/extras/rdf/rdfalgebra.c Branch: lodrdf Log Message:
Add declaration and content of leftfetchjoin_sorted function diffs (57 lines): diff --git a/monetdb5/extras/rdf/rdf.h b/monetdb5/extras/rdf/rdf.h --- a/monetdb5/extras/rdf/rdf.h +++ b/monetdb5/extras/rdf/rdf.h @@ -43,6 +43,10 @@ rdf_export str RDFParser(BAT **graph, str *location, str *graphname, str *schemam); +rdf_export str RDFleftfetchjoin_sortedestimate(int *result, int *lid, int *rid, lng *estimate); +rdf_export str RDFleftfetchjoin_sorted(int *result, int* lid, int *rid); + + #define TRIPLE_STORE 1 #define MLA_STORE 2 diff --git a/monetdb5/extras/rdf/rdfalgebra.c b/monetdb5/extras/rdf/rdfalgebra.c --- a/monetdb5/extras/rdf/rdfalgebra.c +++ b/monetdb5/extras/rdf/rdfalgebra.c @@ -0,0 +1,39 @@ +/* + * The contents of this file are subject to the MonetDB Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.monetdb.org/Legal/MonetDBLicense + * + * Software distributed under the License is distributed on an "AS IS" + * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the + * License for the specific language governing rights and limitations + * under the License. + * + * The Original Code is the MonetDB Database System. + * + * The Initial Developer of the Original Code is CWI. + * Portions created by CWI are Copyright (C) 1997-July 2008 CWI. + * Copyright August 2008-2012 MonetDB B.V. + * All Rights Reserved. + */ + +/* This contains algebra functions used for RDF store only +*/ + +#include "monetdb_config.h" +#include "rdf.h" +#include "algebra.h" +#include <gdk.h> + +static BAT* leftfetchjoin_sorted(BAT* left, BAT *right, BUN estimate) { + BAT *bn = BATleftfetchjoin(left, right, estimate); + if (bn) bn->tsorted = TRUE; /* OK: we must be sure of this, but you are, aren't you? */ + return bn; +} + +str +RDFleftfetchjoin_sorted(bat *result, bat *lid, bat *rid) +{ + return ALGbinaryestimate(result, lid, rid, NULL, leftfetchjoin_sorted, "rdf.leftfetchjoin_sorted"); +} + _______________________________________________ checkin-list mailing list checkin-list@monetdb.org http://mail.monetdb.org/mailman/listinfo/checkin-list