Update of /cvsroot/monetdb/pathfinder/modules/pftijah
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv2399
Modified Files:
pftijah.mx serialize_pftijah.mx
Log Message:
- mirror battype of conceptdictionary
U serialize_pftijah.mx
Index: serialize_pftijah.mx
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/modules/pftijah/serialize_pftijah.mx,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -d -r1.69 -r1.70
--- serialize_pftijah.mx 7 Feb 2009 08:39:12 -0000 1.69
+++ serialize_pftijah.mx 19 Feb 2009 13:31:59 -0000 1.70
@@ -1098,13 +1098,14 @@
BUN bun;
oid dict_oid;
- if ( (bun = BUNfnd(tjctx->b_conceptdict,key)) != BUN_NONE ) {
- BATiter ti = bat_iterator(tjctx->b_conceptdict);
+ BAT* mcd = BATmirror(tjctx->b_conceptdict);
+ if ( (bun = BUNfnd(mcd,key)) != BUN_NONE ) {
+ BATiter ti = bat_iterator(mcd);
dict_oid = *(oid*)BUNtail(ti,bun);
} else {
dict_oid = (oid)BATcount(tjctx->b_conceptdict);
- if ( !BUNins(tjctx->b_conceptdict, (str)key, &dict_oid, FALSE)){
+ if ( !BUNins(tjctx->b_conceptdict, &dict_oid,(str)key, FALSE)){
GDKerror("dictbat: insert \"%s\" in tagbat fails.\n",key);
return false;
}
U pftijah.mx
Index: pftijah.mx
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/modules/pftijah/pftijah.mx,v
retrieving revision 1.207
retrieving revision 1.208
diff -u -d -r1.207 -r1.208
--- pftijah.mx 19 Feb 2009 11:54:36 -0000 1.207
+++ pftijah.mx 19 Feb 2009 13:31:59 -0000 1.208
@@ -636,7 +636,7 @@
new(void,oid).seqbase(1...@0).persists(true).bbpname("tj_" + ftiName
+ "_fragments");
bat("tj_" + ftiName + "_fragments").append(1...@0);
new(oid,oid).persists(true).bbpname("tj_" + ftiName + "_pfpre");
- new(str,oid).persists(true).bbpname("tj_" + ftiName +
"_conceptdict");
+ new(oid,str).persists(true).bbpname("tj_" + ftiName +
"_conceptdict");
new(void,oid).seqbase(0...@0).persists(true).bbpname("tj_" + ftiName
+ "_concept_tid");
new(void,oid).seqbase(0...@0).persists(true).bbpname("tj_" + ftiName
+ "_concept_elem");
new(void,dbl).seqbase(0...@0).persists(true).bbpname("tj_" + ftiName
+ "_concept_score");
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins