Home | History | Annotate | Download | only in dist

Lines Matching refs:pIdxInfo

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