Lines Matching refs:current

289   StatSample current;       /* Current row as a StatSample */  member
372 sampleClear(p->db, &p->current); in statAccumDestructor()
449 p->current.anDLt = (tRowcnt*)&p[1]; in statInit()
450 p->current.anEq = &p->current.anDLt[nColUp]; in statInit()
460 p->current.anLt = &p->current.anEq[nColUp]; in statInit()
464 p->a = (struct StatSample*)&p->current.anLt[nColUp]; in statInit()
656 pBest->anEq[i] = p->current.anEq[i]; in samplePushPrevious()
674 if( p->a[i].anEq[j]==0 ) p->a[i].anEq[j] = p->current.anEq[j]; in samplePushPrevious()
719 for(i=0; i<p->nCol; i++) p->current.anEq[i] = 1; in statPush()
729 p->current.anEq[i]++; in statPush()
732 p->current.anDLt[i]++; in statPush()
734 if( p->mxSample ) p->current.anLt[i] += p->current.anEq[i]; in statPush()
736 p->current.anEq[i] = 1; in statPush()
745 sampleSetRowidInt64(p->db, &p->current, sqlite3_value_int64(argv[2])); in statPush()
747 sampleSetRowid(p->db, &p->current, sqlite3_value_bytes(argv[2]), in statPush()
750 p->current.iHash = p->iPrn = p->iPrn*1103515245 + 12345; in statPush()
752 nLt = p->current.anLt[p->nCol-1]; in statPush()
755 p->current.isPSample = 1; in statPush()
756 p->current.iCol = 0; in statPush()
757 sampleInsert(p, &p->current, p->nCol-1); in statPush()
758 p->current.isPSample = 0; in statPush()
763 p->current.iCol = i; in statPush()
764 if( i>=iChng || sampleIsBetterPost(p, &p->current, &p->aBest[i]) ){ in statPush()
765 sampleCopy(p, &p->aBest[i], &p->current); in statPush()
772 sqlite3_result_int(context, p->current.anDLt[0]>0); in statPush()
866 u64 nDistinct = p->current.anDLt[i] + 1; in statGet()
870 assert( p->current.anEq[i] ); in statGet()