Update of /cvsroot/monetdb/sql/src/storage/bpm
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv12431/src/storage/bpm
Modified Files:
bpm_storage.mx
Log Message:
added support for 'create cluster name on tname ( column list )'
which caused lots of changes all over the place.
also fixed (moved code out of sql -> mkey)
moved finally copy into over to a function and into relational alg.
U bpm_storage.mx
Index: bpm_storage.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/storage/bpm/bpm_storage.mx,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- bpm_storage.mx 25 May 2009 10:38:37 -0000 1.24
+++ bpm_storage.mx 25 Jul 2009 22:08:38 -0000 1.25
@@ -448,6 +448,16 @@
return b->parts[0].cnt;
}
+static int
+sorted_col(sql_trans *tr, sql_column *col)
+{
+ BAT *b = bind_col(tr, col, RDONLY);
+ int sorted = BATtordered(b);
+
+ bat_destroy(b);
+ return sorted;
+}
+
static int
load_bpm (sql_bpm *p)
{
@@ -1034,6 +1044,7 @@
sf->count_col = (count_col_fptr)&count_col;
sf->count_idx = (count_idx_fptr)&count_idx;
+ sf->sorted_col = (sorted_col_fptr)&sorted_col;
sf->create_col = (create_col_fptr)&create_col;
sf->create_idx = (create_idx_fptr)&create_idx;
------------------------------------------------------------------------------
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins