Update of /cvsroot/monetdb/pathfinder/modules/pftijah
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv17660
Modified Files:
Tag: XQuery_0-18
pftijah.mx
Log Message:
* add function:
PROC tj_is_indexed(str collName) : bit :=
for Peter. This function checks the collName in the pf-collection ft-index
depency table. This means it also has 'will it be indexed' semantics. When
an ft-index for all pf-collections is created the return value will always
be true because when the document is stored it will immediately be indexed
by pftijah.
Index: pftijah.mx
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/modules/pftijah/pftijah.mx,v
retrieving revision 1.134.2.9
retrieving revision 1.134.2.10
diff -u -d -r1.134.2.9 -r1.134.2.10
--- pftijah.mx 11 Jun 2007 08:45:43 -0000 1.134.2.9
+++ pftijah.mx 12 Jun 2007 12:14:18 -0000 1.134.2.10
@@ -1154,6 +1154,20 @@
#
#
+PROC tj_is_indexed(str collName) : bit :=
+{
+ if (view_bbp_name().reverse().exist("tj_pfc_fti_dep")) {
+ if ( bat("tj_pfc_fti_dep_star").count() > 0 ) {
+ # eg. all collections are indexed
+ return TRUE;
+ } else {
+ return bat("tj_pfc_fti_dep").reverse().exist(collName);
+ }
+ } else {
+ return FALSE;
+ }
+}
+
PROC tj_play_doc_tape(BAT[void,BAT] ws,
BAT[void,oid] item,
BAT[void,int] kind,
@@ -1209,10 +1223,8 @@
}
}
-
const virtRoot := [EMAIL PROTECTED];
-
##
# Compute ancestor-descendant relation.
#
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins