Home | History | Annotate | Download | only in amalgamation

Lines Matching defs:iLevel

10533   int iCacheLevel;     /* ColCache valid when aColCache[].iLevel<=iCacheLevel */
10541 int iLevel; /* Nesting level */
72756 p->iLevel = pParse->iCacheLevel;
72769 p->iLevel = pParse->iCacheLevel;
72790 p->iLevel = pParse->iCacheLevel;
72838 if( p->iReg && p->iLevel>pParse->iCacheLevel ){
101164 int iLevel, /* Value for "level" column of output */
101231 sqlite3VdbeAddOp4(v, OP_Explain, iId, iLevel, iFrom, zMsg, P4_DYNAMIC);
101240 ** Generate code for the start of the iLevel-th loop in the WHERE clause
101245 int iLevel, /* Which level of pWInfo->a[] should be coded */
101268 pLevel = &pWInfo->a[iLevel];
101746 nNotReady = pWInfo->nLevel - iLevel - 1;
101789 pParse, pOrTab, &pSubWInfo->a[0], iLevel, pLevel->iFrom, 0
115167 int iLevel, /* Level of segments to scan */
115180 assert( iLevel==FTS3_SEGCURSOR_ALL
115181 || iLevel==FTS3_SEGCURSOR_PENDING
115182 || iLevel>=0
115186 assert( iLevel==FTS3_SEGCURSOR_ALL || (zTerm==0 && isPrefix==1) );
115192 /* If iLevel is less than 0, include a seg-reader for the pending-terms. */
115194 if( iLevel<0 && isScan==0 ){
115209 if( iLevel!=FTS3_SEGCURSOR_PENDING ){
115211 rc = sqlite3Fts3AllSegdirs(p, iLevel, &pStmt);
120310 SQLITE_PRIVATE int sqlite3Fts3AllSegdirs(Fts3Table *p, int iLevel, sqlite3_stmt **ppStmt){
120313 if( iLevel<0 ){
120317 if( rc==SQLITE_OK ) sqlite3_bind_int(pStmt, 1, iLevel);
120697 ** This function allocates a new level iLevel index in the segdir table.
120702 ** SELECT max(idx) FROM %_segdir WHERE level = :iLevel
120705 ** level, they are merged into a single level (iLevel+1) segment and the
120711 static int fts3AllocateSegdirIdx(Fts3Table *p, int iLevel, int *piIdx){
120713 sqlite3_stmt *pNextIdx; /* Query for next idx at level iLevel */
120716 /* Set variable iNext to the next available segdir index at level iLevel. */
120719 sqlite3_bind_int(pNextIdx, 1, iLevel);
120727 /* If iNext is FTS3_MERGE_COUNT, indicating that level iLevel is already
120728 ** full, merge all segments in level iLevel into a single iLevel+1
120729 ** segment and allocate (newly freed) index 0 at level iLevel. Otherwise,
120733 rc = fts3SegmentMerge(p, iLevel);
121369 int iLevel, /* Value for "level" field */
121380 sqlite3_bind_int(pStmt, 1, iLevel);
121763 int iLevel, /* Value for 'level' column of %_segdir */
121781 p, iLevel, iIdx, pWriter->iFirst, iLastLeaf, iLast, zRoot, nRoot);
121786 p, iLevel, iIdx, 0, 0, 0, pWriter->aData, pWriter->nData);
121856 ** 2) deletes all %_segdir entries with level iLevel, or all %_segdir
121857 ** entries regardless of level if (iLevel<0).
121863 int iLevel, /* Level of %_segdir entries to delete */
121885 if( iLevel==FTS3_SEGCURSOR_ALL ){
121887 }else if( iLevel==FTS3_SEGCURSOR_PENDING ){
121890 assert( iLevel>=0 );
121893 sqlite3_bind_int(pDelete, 1, iLevel);
122131 ** Merge all level iLevel segments in the database into a single
122132 ** iLevel+1 segment. Or, if iLevel<0, merge all segments into a
122136 ** If this function is called with iLevel<0, but there is only one
122141 static int fts3SegmentMerge(Fts3Table *p, int iLevel){
122149 rc = sqlite3Fts3SegReaderCursor(p, iLevel, 0, 0, 1, 0, &csr);
122152 if( iLevel==FTS3_SEGCURSOR_ALL ){
122164 /* This call is to merge all segments at level iLevel. Find the next
122165 ** available segment index at level iLevel+1. The call to
122166 ** fts3AllocateSegdirIdx() will merge the segments at level iLevel+1 to
122167 ** a single iLevel+2 segment if necessary. */
122168 iNewLevel = iLevel+1;
122177 filter.flags |= (iLevel==FTS3_SEGCURSOR_ALL ? FTS3_SEGMENT_IGNORE_EMPTY : 0);
122189 rc = fts3DeleteSegdir(p, iLevel, csr.apSegment, csr.nSegment);