Lines Matching refs:tRowcnt
15286 typedef u64 tRowcnt; typedef
19178 tRowcnt *aAvgEq; /* Average nEq values for keys not in aSample */
19180 tRowcnt *aiRowEst; /* Non-logarithmic stat1 data for this index */
19181 tRowcnt nRowEst0; /* Non-logarithmic number of rows in the index */
19214 tRowcnt *anEq; /* Est. number of rows where the key equals this sample */
19215 tRowcnt *anLt; /* Est. number of rows where key is less than this sample */
19216 tRowcnt *anDLt; /* Est. number of distinct keys less than this sample */
120368 tRowcnt *anDLt; /* sqlite_stat4.nDLt */
120370 tRowcnt *anEq; /* sqlite_stat4.nEq */
120371 tRowcnt *anLt; /* sqlite_stat4.nLt */
120384 tRowcnt nEst; /* Estimated number of rows */
120385 tRowcnt nRow; /* Number of rows visited so far */
120392 tRowcnt nPSample; /* How often to do a periodic sample */
120452 memcpy(pTo->anEq, pFrom->anEq, sizeof(tRowcnt)*p->nCol);
120453 memcpy(pTo->anLt, pFrom->anLt, sizeof(tRowcnt)*p->nCol);
120454 memcpy(pTo->anDLt, pFrom->anDLt, sizeof(tRowcnt)*p->nCol);
120521 nColUp = sizeof(tRowcnt)<8 ? (nCol+1)&~1 : nCol;
120528 + sizeof(tRowcnt)*nColUp; /* StatAccum.anDLt */
120530 n += sizeof(tRowcnt)*nColUp; /* StatAccum.anEq */
120532 n += sizeof(tRowcnt)*nColUp /* StatAccum.anLt */
120534 + sizeof(tRowcnt)*3*nColUp*(nCol+mxSample);
120550 p->current.anDLt = (tRowcnt*)&p[1];
120560 p->nPSample = (tRowcnt)(p->nEst/(mxSample/3+1) + 1);
120569 p->a[i].anEq = (tRowcnt *)pSpace; pSpace += (sizeof(tRowcnt) * nColUp);
120570 p->a[i].anLt = (tRowcnt *)pSpace; pSpace += (sizeof(tRowcnt) * nColUp);
120571 p->a[i].anDLt = (tRowcnt *)pSpace; pSpace += (sizeof(tRowcnt) * nColUp);
120640 tRowcnt nEqNew = pNew->anEq[pNew->iCol];
120641 tRowcnt nEqOld = pOld->anEq[pOld->iCol];
120701 tRowcnt *anEq = pMin->anEq;
120702 tRowcnt *anLt = pMin->anLt;
120703 tRowcnt *anDLt = pMin->anDLt;
120726 memset(pSample->anEq, 0, sizeof(tRowcnt)*nEqZero);
120848 tRowcnt nLt;
120875 if( p->nLimit && p->nRow>(tRowcnt)p->nLimit*(p->nSkipAhead+1) ){
120997 tRowcnt *aCnt = 0;
121623 tRowcnt *aOut, /* Store integers here */
121630 tRowcnt v;
121719 tRowcnt *aiRowEst = 0;
121726 pIndex->aiRowEst = (tRowcnt*)sqlite3MallocZero(sizeof(tRowcnt) * nCol);
121800 tRowcnt sumEq = 0; /* Sum of the nEq values */
121801 tRowcnt avgEq = 0;
121802 tRowcnt nRow; /* Number of rows in index */
121896 tRowcnt *pSpace; /* Available allocated memory space */
121918 nByte += sizeof(tRowcnt) * nIdxCol * 3 * nSample;
121919 nByte += nIdxCol * sizeof(tRowcnt); /* Space for Index.aAvgEq[] */
121928 pSpace = (tRowcnt*)pPtr;
166183 tRowcnt *aStat /* OUT: stats written here */
166193 tRowcnt iLower = 0; /* anLt[] + anEq[] of largest sample pRec is > */
166338 tRowcnt iUpper, iGap;
166572 tRowcnt a[2];
166595 tRowcnt iLower; /* Rows less than the lower bound */
166596 tRowcnt iUpper; /* Rows less than the upper bound */
166631 tRowcnt iNew;
166648 tRowcnt iNew;
166738 tRowcnt *pnRow /* Write the revised row estimate here */
166744 tRowcnt a[2]; /* Statistics */
166802 tRowcnt *pnRow /* Write the revised row estimate here */
166808 tRowcnt nEst; /* Number of rows for a single term */
166809 tRowcnt nRowEst = 0; /* New estimate of the number of rows */
166821 if( nRowEst > (tRowcnt)nRow0 ) nRowEst = nRow0;
167853 tRowcnt nOut = 0;