Lines Matching refs:pIdxInfo
6061 sqlite3_index_info *pIdxInfo in seriesBestIndex() argument
6077 pConstraint = pIdxInfo->aConstraint; in seriesBestIndex()
6078 for(i=0; i<pIdxInfo->nConstraint; i++, pConstraint++){ in seriesBestIndex()
6096 pIdxInfo->aConstraintUsage[j].argvIndex = ++nArg; in seriesBestIndex()
6097 pIdxInfo->aConstraintUsage[j].omit = !SQLITE_SERIES_CONSTRAINT_VERIFY; in seriesBestIndex()
6121 pIdxInfo->estimatedCost = (double)(2 - ((idxNum&4)!=0)); in seriesBestIndex()
6122 pIdxInfo->estimatedRows = 1000; in seriesBestIndex()
6123 if( pIdxInfo->nOrderBy>=1 && pIdxInfo->aOrderBy[0].iColumn==0 ){ in seriesBestIndex()
6124 if( pIdxInfo->aOrderBy[0].desc ){ in seriesBestIndex()
6129 pIdxInfo->orderByConsumed = 1; in seriesBestIndex()
6135 pIdxInfo->estimatedRows = 2147483647; in seriesBestIndex()
6137 pIdxInfo->idxNum = idxNum; in seriesBestIndex()
7978 sqlite3_index_info *pIdxInfo in fsdirBestIndex() argument
7988 pConstraint = pIdxInfo->aConstraint; in fsdirBestIndex()
7989 for(i=0; i<pIdxInfo->nConstraint; i++, pConstraint++){ in fsdirBestIndex()
8018 pIdxInfo->idxNum = 0; in fsdirBestIndex()
8021 pIdxInfo->estimatedRows = 0x7fffffff; in fsdirBestIndex()
8023 pIdxInfo->aConstraintUsage[idxPath].omit = 1; in fsdirBestIndex()
8024 pIdxInfo->aConstraintUsage[idxPath].argvIndex = 1; in fsdirBestIndex()
8026 pIdxInfo->aConstraintUsage[idxDir].omit = 1; in fsdirBestIndex()
8027 pIdxInfo->aConstraintUsage[idxDir].argvIndex = 2; in fsdirBestIndex()
8028 pIdxInfo->idxNum = 2; in fsdirBestIndex()
8029 pIdxInfo->estimatedCost = 10.0; in fsdirBestIndex()
8031 pIdxInfo->idxNum = 1; in fsdirBestIndex()
8032 pIdxInfo->estimatedCost = 100.0; in fsdirBestIndex()
8522 sqlite3_index_info *pIdxInfo in completionBestIndex() argument
8532 pConstraint = pIdxInfo->aConstraint; in completionBestIndex()
8533 for(i=0; i<pIdxInfo->nConstraint; i++, pConstraint++){ in completionBestIndex()
8548 pIdxInfo->aConstraintUsage[prefixIdx].argvIndex = ++nArg; in completionBestIndex()
8549 pIdxInfo->aConstraintUsage[prefixIdx].omit = 1; in completionBestIndex()
8552 pIdxInfo->aConstraintUsage[wholelineIdx].argvIndex = ++nArg; in completionBestIndex()
8553 pIdxInfo->aConstraintUsage[wholelineIdx].omit = 1; in completionBestIndex()
8555 pIdxInfo->idxNum = idxNum; in completionBestIndex()
8556 pIdxInfo->estimatedCost = (double)5000 - 1000*nArg; in completionBestIndex()
8557 pIdxInfo->estimatedRows = 500 - 100*nArg; in completionBestIndex()
10619 sqlite3_index_info *pIdxInfo in zipfileBestIndex() argument
10626 for(i=0; i<pIdxInfo->nConstraint; i++){ in zipfileBestIndex()
10627 const struct sqlite3_index_constraint *pCons = &pIdxInfo->aConstraint[i]; in zipfileBestIndex()
10635 pIdxInfo->estimatedCost = 1000.0; in zipfileBestIndex()
10637 pIdxInfo->aConstraintUsage[idx].argvIndex = 1; in zipfileBestIndex()
10638 pIdxInfo->aConstraintUsage[idx].omit = 1; in zipfileBestIndex()
10639 pIdxInfo->idxNum = 1; in zipfileBestIndex()
12291 static int expertBestIndex(sqlite3_vtab *pVtab, sqlite3_index_info *pIdxInfo){ in expertBestIndex() argument
12311 for(i=0; i<pIdxInfo->nConstraint; i++){ in expertBestIndex()
12312 struct sqlite3_index_constraint *pCons = &pIdxInfo->aConstraint[i]; in expertBestIndex()
12319 const char *zColl = sqlite3_vtab_collation(pIdxInfo, i); in expertBestIndex()
12333 pIdxInfo->aConstraintUsage[i].argvIndex = n; in expertBestIndex()
12338 for(i=pIdxInfo->nOrderBy-1; i>=0; i--){ in expertBestIndex()
12339 int iCol = pIdxInfo->aOrderBy[i].iColumn; in expertBestIndex()
12344 pNew->bDesc = pIdxInfo->aOrderBy[i].desc; in expertBestIndex()
12354 pIdxInfo->estimatedCost = 1000000.0 / (n+1); in expertBestIndex()