Lines Matching refs:pIdxInfo

2777   sqlite3_index_info *pIdxInfo  in fsdirBestIndex()  argument
2785 pConstraint = pIdxInfo->aConstraint; in fsdirBestIndex()
2786 for(i=0; i<pIdxInfo->nConstraint; i++, pConstraint++){ in fsdirBestIndex()
2794 pIdxInfo->idxNum = 0; in fsdirBestIndex()
2795 pIdxInfo->estimatedCost = (double)(((sqlite3_int64)1) << 50); in fsdirBestIndex()
2797 pIdxInfo->aConstraintUsage[idx4].omit = 1; in fsdirBestIndex()
2798 pIdxInfo->aConstraintUsage[idx4].argvIndex = 1; in fsdirBestIndex()
2800 pIdxInfo->aConstraintUsage[idx5].omit = 1; in fsdirBestIndex()
2801 pIdxInfo->aConstraintUsage[idx5].argvIndex = 2; in fsdirBestIndex()
2802 pIdxInfo->idxNum = 2; in fsdirBestIndex()
2803 pIdxInfo->estimatedCost = 10.0; in fsdirBestIndex()
2805 pIdxInfo->idxNum = 1; in fsdirBestIndex()
2806 pIdxInfo->estimatedCost = 100.0; in fsdirBestIndex()
3306 sqlite3_index_info *pIdxInfo in completionBestIndex() argument
3316 pConstraint = pIdxInfo->aConstraint; in completionBestIndex()
3317 for(i=0; i<pIdxInfo->nConstraint; i++, pConstraint++){ in completionBestIndex()
3332 pIdxInfo->aConstraintUsage[prefixIdx].argvIndex = ++nArg; in completionBestIndex()
3333 pIdxInfo->aConstraintUsage[prefixIdx].omit = 1; in completionBestIndex()
3336 pIdxInfo->aConstraintUsage[wholelineIdx].argvIndex = ++nArg; in completionBestIndex()
3337 pIdxInfo->aConstraintUsage[wholelineIdx].omit = 1; in completionBestIndex()
3339 pIdxInfo->idxNum = idxNum; in completionBestIndex()
3340 pIdxInfo->estimatedCost = (double)5000 - 1000*nArg; in completionBestIndex()
3341 pIdxInfo->estimatedRows = 500 - 100*nArg; in completionBestIndex()
4985 sqlite3_index_info *pIdxInfo in zipfileBestIndex() argument
4989 for(i=0; i<pIdxInfo->nConstraint; i++){ in zipfileBestIndex()
4990 const struct sqlite3_index_constraint *pCons = &pIdxInfo->aConstraint[i]; in zipfileBestIndex()
4997 if( i<pIdxInfo->nConstraint ){ in zipfileBestIndex()
4998 pIdxInfo->aConstraintUsage[i].argvIndex = 1; in zipfileBestIndex()
4999 pIdxInfo->aConstraintUsage[i].omit = 1; in zipfileBestIndex()
5000 pIdxInfo->estimatedCost = 1000.0; in zipfileBestIndex()
5001 pIdxInfo->idxNum = 1; in zipfileBestIndex()
5003 pIdxInfo->estimatedCost = (double)(((sqlite3_int64)1) << 50); in zipfileBestIndex()
5004 pIdxInfo->idxNum = 0; in zipfileBestIndex()
6370 static int expertBestIndex(sqlite3_vtab *pVtab, sqlite3_index_info *pIdxInfo){ in expertBestIndex() argument
6390 for(i=0; i<pIdxInfo->nConstraint; i++){ in expertBestIndex()
6391 struct sqlite3_index_constraint *pCons = &pIdxInfo->aConstraint[i]; in expertBestIndex()
6398 const char *zColl = sqlite3_vtab_collation(pIdxInfo, i); in expertBestIndex()
6412 pIdxInfo->aConstraintUsage[i].argvIndex = n; in expertBestIndex()
6417 for(i=pIdxInfo->nOrderBy-1; i>=0; i--){ in expertBestIndex()
6418 int iCol = pIdxInfo->aOrderBy[i].iColumn; in expertBestIndex()
6423 pNew->bDesc = pIdxInfo->aOrderBy[i].desc; in expertBestIndex()
6433 pIdxInfo->estimatedCost = 1000000.0 / (n+1); in expertBestIndex()