Lines Matching refs:pIdxInfo
2771 sqlite3_index_info *pIdxInfo in fsdirBestIndex() argument
2779 pConstraint = pIdxInfo->aConstraint; in fsdirBestIndex()
2780 for(i=0; i<pIdxInfo->nConstraint; i++, pConstraint++){ in fsdirBestIndex()
2788 pIdxInfo->idxNum = 0; in fsdirBestIndex()
2789 pIdxInfo->estimatedCost = (double)(((sqlite3_int64)1) << 50); in fsdirBestIndex()
2791 pIdxInfo->aConstraintUsage[idx4].omit = 1; in fsdirBestIndex()
2792 pIdxInfo->aConstraintUsage[idx4].argvIndex = 1; in fsdirBestIndex()
2794 pIdxInfo->aConstraintUsage[idx5].omit = 1; in fsdirBestIndex()
2795 pIdxInfo->aConstraintUsage[idx5].argvIndex = 2; in fsdirBestIndex()
2796 pIdxInfo->idxNum = 2; in fsdirBestIndex()
2797 pIdxInfo->estimatedCost = 10.0; in fsdirBestIndex()
2799 pIdxInfo->idxNum = 1; in fsdirBestIndex()
2800 pIdxInfo->estimatedCost = 100.0; in fsdirBestIndex()
3300 sqlite3_index_info *pIdxInfo in completionBestIndex() argument
3310 pConstraint = pIdxInfo->aConstraint; in completionBestIndex()
3311 for(i=0; i<pIdxInfo->nConstraint; i++, pConstraint++){ in completionBestIndex()
3326 pIdxInfo->aConstraintUsage[prefixIdx].argvIndex = ++nArg; in completionBestIndex()
3327 pIdxInfo->aConstraintUsage[prefixIdx].omit = 1; in completionBestIndex()
3330 pIdxInfo->aConstraintUsage[wholelineIdx].argvIndex = ++nArg; in completionBestIndex()
3331 pIdxInfo->aConstraintUsage[wholelineIdx].omit = 1; in completionBestIndex()
3333 pIdxInfo->idxNum = idxNum; in completionBestIndex()
3334 pIdxInfo->estimatedCost = (double)5000 - 1000*nArg; in completionBestIndex()
3335 pIdxInfo->estimatedRows = 500 - 100*nArg; in completionBestIndex()
4979 sqlite3_index_info *pIdxInfo in zipfileBestIndex() argument
4983 for(i=0; i<pIdxInfo->nConstraint; i++){ in zipfileBestIndex()
4984 const struct sqlite3_index_constraint *pCons = &pIdxInfo->aConstraint[i]; in zipfileBestIndex()
4991 if( i<pIdxInfo->nConstraint ){ in zipfileBestIndex()
4992 pIdxInfo->aConstraintUsage[i].argvIndex = 1; in zipfileBestIndex()
4993 pIdxInfo->aConstraintUsage[i].omit = 1; in zipfileBestIndex()
4994 pIdxInfo->estimatedCost = 1000.0; in zipfileBestIndex()
4995 pIdxInfo->idxNum = 1; in zipfileBestIndex()
4997 pIdxInfo->estimatedCost = (double)(((sqlite3_int64)1) << 50); in zipfileBestIndex()
4998 pIdxInfo->idxNum = 0; in zipfileBestIndex()
6364 static int expertBestIndex(sqlite3_vtab *pVtab, sqlite3_index_info *pIdxInfo){ in expertBestIndex() argument
6384 for(i=0; i<pIdxInfo->nConstraint; i++){ in expertBestIndex()
6385 struct sqlite3_index_constraint *pCons = &pIdxInfo->aConstraint[i]; in expertBestIndex()
6392 const char *zColl = sqlite3_vtab_collation(pIdxInfo, i); in expertBestIndex()
6406 pIdxInfo->aConstraintUsage[i].argvIndex = n; in expertBestIndex()
6411 for(i=pIdxInfo->nOrderBy-1; i>=0; i--){ in expertBestIndex()
6412 int iCol = pIdxInfo->aOrderBy[i].iColumn; in expertBestIndex()
6417 pNew->bDesc = pIdxInfo->aOrderBy[i].desc; in expertBestIndex()
6427 pIdxInfo->estimatedCost = 1000000.0 / (n+1); in expertBestIndex()