Changeset: 72cd5a65be6f for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=72cd5a65be6f
Modified Files:
        monetdb5/extras/crackers/crackers_selectholpl_ops.mx
Branch: holindex
Log Message:

Add node in holistic struct only when the index is created.


diffs (25 lines):

diff --git a/monetdb5/extras/crackers/crackers_selectholpl_ops.mx 
b/monetdb5/extras/crackers/crackers_selectholpl_ops.mx
--- a/monetdb5/extras/crackers/crackers_selectholpl_ops.mx
+++ b/monetdb5/extras/crackers/crackers_selectholpl_ops.mx
@@ -276,16 +276,15 @@ CRKrandomholpl_@1(int *bid, bit *inclusi
                                _vl = vl;
                        if (gapL>0) 
                        {
-                               addCrackerIndex_@1(m, low, *inclusiveLow, _vl, 
c);              
+                               addCrackerIndex_@1(m, low, *inclusiveLow, _vl, 
c);      
+                               CRKinitFrequencyStruct(0,*bid);
+                               FN=searchBAT(FrequencyStructA,*bid);
+                               FN->c = FN->c + 1;
+                               FN->weight = 
changeWeight_1(FN,countBatElements,L1);    
                        }
                        if ((vl == 1) && (*t == *low) && (*inclusiveLow == 
TRUE))
                                vl = vl - 1;
                }
-               CRKinitFrequencyStruct(0,*bid);
-               FN=searchBAT(FrequencyStructA,*bid);
-               FN->c = FN->c + 1;
-               FN->weight = changeWeight_1(FN,countBatElements,L1);
-               /*printFrequencyStruct(FrequencyStructA);*/
                BBPincref(b->batCacheid,TRUE);
                BBPunfix(bo->batCacheid);
 
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to