Lines Matching defs:StatAccum
264 typedef struct StatAccum StatAccum; typedef
281 struct StatAccum { struct
282 sqlite3 *db; /* Database connection, for malloc() */
283 tRowcnt nEst; /* Estimated number of rows */
284 tRowcnt nRow; /* Number of rows visited so far */
285 int nLimit; /* Analysis row-scan limit */
286 int nCol; /* Number of columns in index + pk/rowid */
287 int nKeyCol; /* Number of index columns w/o the pk/rowid */
288 u8 nSkipAhead; /* Number of times of skip-ahead */
289 StatSample current; /* Current row as a StatSample */
291 tRowcnt nPSample; /* How often to do a periodic sample */
292 int mxSample; /* Maximum number of samples to accumulate */
293 u32 iPrn; /* Pseudo-random number used for sampling */
294 StatSample *aBest; /* Array of nCol best samples */
295 int iMin; /* Index in a[] of entry with minimum score */
296 int nSample; /* Current number of samples */
297 int nMaxEqZero; /* Max leading 0 in anEq[] for any a[] entry */
298 int iGet; /* Index of current sample accessed by stat_get() */
299 StatSample *a; /* Array of mxSample StatSample objects */