Home | History | Annotate | Download | only in orig

Lines Matching refs:pIter

46997   WalIterator *pIter = 0;         /* Wal iterator context */
47013 rc = walIteratorInit(pWal, &pIter);
47017 assert( pIter );
47068 while( rc==SQLITE_OK && 0==walIteratorNext(pIter, &iDbpage, &iFrame) ){
47126 walIteratorFree(pIter);
49588 BtLock *pIter;
49615 for(pIter=pBt->pLock; pIter; pIter=pIter->pNext){
49616 /* The condition (pIter->eLock!=eLock) in the following if(...)
49619 ** (eLock==WRITE_LOCK || pIter->eLock==WRITE_LOCK)
49625 assert( pIter->eLock==READ_LOCK || pIter->eLock==WRITE_LOCK );
49626 assert( eLock==READ_LOCK || pIter->pBtree==p || pIter->eLock==READ_LOCK);
49627 if( pIter->pBtree!=p && pIter->iTable==iTab && pIter->eLock!=eLock ){
49628 sqlite3ConnectionBlocked(p->db, pIter->pBtree->db);
49661 BtLock *pIter;
49679 for(pIter=pBt->pLock; pIter; pIter=pIter->pNext){
49680 if( pIter->iTable==iTable && pIter->pBtree==p ){
49681 pLock = pIter;
50340 u8 *pIter = &pCell[pPage->childPtrSize];
50355 pIter += getVarint32(pIter, nSize);
50360 /* pIter now points at the 64-bit integer key value, a variable length
50361 ** integer. The following block moves pIter to point at the first byte
50363 pEnd = &pIter[9];
50364 while( (*pIter++)&0x80 && pIter<pEnd );
50366 pIter += getVarint32(pIter, nSize);
50381 nSize += (u32)(pIter - pCell);
51941 BtLock *pIter;
51942 for(pIter=pBt->pLock; pIter; pIter=pIter->pNext){
51943 if( pIter->pBtree!=p ){
51944 pBlock = pIter->pBtree->db;
71788 static void vdbeSorterIterZero(sqlite3 *db, VdbeSorterIter *pIter){
71789 sqlite3DbFree(db, pIter->aAlloc);
71790 memset(pIter, 0, sizeof(VdbeSorterIter));
71794 ** Advance iterator pIter to the next key in its PMA. Return SQLITE_OK if
71799 VdbeSorterIter *pIter /* Iterator to advance */
71806 assert( pIter->iEof>=pIter->iReadOff );
71807 if( pIter->iEof-pIter->iReadOff>5 ){
71810 nRead = (int)(pIter->iEof - pIter->iReadOff);
71814 vdbeSorterIterZero(db, pIter);
71818 rc = sqlite3OsRead(pIter->pFile, pIter->aAlloc, nRead, pIter->iReadOff);
71820 iOff = getVarint32(pIter->aAlloc, nRec);
71823 if( (iOff+nRec)>pIter->nAlloc ){
71824 int nNew = pIter->nAlloc*2;
71826 pIter->aAlloc = sqlite3DbReallocOrFree(db, pIter->aAlloc, nNew);
71827 if( !pIter->aAlloc ) return SQLITE_NOMEM;
71828 pIter->nAlloc = nNew;
71833 pIter->pFile, &pIter->aAlloc[nRead], nRead2, pIter->iReadOff+nRead
71839 pIter->iReadOff += iOff+nRec;
71840 pIter->nKey = nRec;
71841 pIter->aKey = &pIter->aAlloc[iOff];
71898 ** Initialize iterator pIter to scan through the PMA stored in file pFile
71907 VdbeSorterIter *pIter, /* Iterator to populate */
71913 assert( pIter->aAlloc==0 );
71914 pIter->pFile = pSorter->pTemp1;
71915 pIter->iReadOff = iStart;
71916 pIter->nAlloc = 128;
71917 pIter->aAlloc = (u8 *)sqlite3DbMallocRaw(db, pIter->nAlloc);
71918 if( !pIter->aAlloc ){
71922 rc = vdbeSorterReadVarint(pSorter->pTemp1, &pIter->iReadOff, &nByte);
71924 pIter->iEof = pIter->iReadOff + nByte;
71927 rc = vdbeSorterIterNext(db, pIter);
72310 VdbeSorterIter *pIter = &pSorter->aIter[i];
72311 rc = vdbeSorterIterInit(db, pSorter, pSorter->iReadOff, pIter, &nByte);
72312 pSorter->iReadOff = pIter->iEof;
72403 VdbeSorterIter *pIter = &pSorter->aIter[ pSorter->aTree[1] ];
72404 assert( pIter->pFile );
72405 nToWrite = pIter->nKey + sqlite3VarintLen(pIter->nKey);
72406 rc = sqlite3OsWrite(pTemp2, pIter->aAlloc, nToWrite, iWrite2);
72473 VdbeSorterIter *pIter;
72474 pIter = &pSorter->aIter[ pSorter->aTree[1] ];
72475 *pnKey = pIter->nKey;
72476 pKey = pIter->aKey;
120607 char *pIter; /* Used to iterate through aAll */
120610 pIter = pDL->pNextDocid;
120612 pIter = pDL->aAll;
120615 if( pIter>=pEnd ){
120620 pIter += sqlite3Fts3GetVarint(pIter, &iDelta);
120626 pDL->pList = pIter;
120627 fts3PoslistCopy(0, &pIter);
120628 pDL->nList = (int)(pIter - pDL->pList);
120630 /* pIter now points just past the 0x00 that terminates the position-
120632 ** edited in place by fts3EvalNearTrim(), then pIter may not actually
120634 ** with this case by advancing pIter past the zero-padding added by
120636 while( pIter<pEnd && *pIter==0 ) pIter++;
120638 pDL->pNextDocid = pIter;
120639 assert( pIter>=&pDL->aAll[pDL->nAll] || *pIter );
121736 char *pIter = pPhrase->doclist.pList;
121740 if( !pIter
121749 if( *pIter==0x01 ){
121750 pIter++;
121751 pIter += sqlite3Fts3GetVarint32(pIter, &iThis);
121756 fts3ColumnlistCopy(0, &pIter);
121757 if( *pIter==0x00 ) return 0;
121758 pIter++;
121759 pIter += sqlite3Fts3GetVarint32(pIter, &iThis);
121762 return ((iCol==iThis)?pIter:0);
123013 Fts3Expr *pIter = pNotBranch;
123014 while( pIter->pLeft ){
123015 pIter = pIter->pLeft;
123017 pIter->pLeft = pRet;
127052 SegmentNode *pIter;
127055 for(pIter=pTree->pLeftmost; pIter && rc==SQLITE_OK; pIter=pIter->pRight){
127056 int nStart = fts3TreeFinishNode(pIter, iHeight, iNextLeaf);
127057 int nWrite = pIter->nData - nStart;
127059 rc = fts3WriteSegment(p, iNextFree, &pIter->aData[nStart], nWrite);
127061 iNextLeaf += (pIter->nEntry+1);
128849 char *pIter = *ppIter;
128850 if( pIter ){
128854 if( 0==(*pIter & 0xFE) ){
128856 pIter = 0;
128859 fts3GetDeltaPosition(&pIter, &iIter);
128863 *ppIter = pIter;
128870 static int fts3SnippetNextCandidate(SnippetIter *pIter){
128873 if( pIter->iCurrent<0 ){
128878 pIter->iCurrent = 0;
128883 for(i=0; i<pIter->nPhrase; i++){
128884 SnippetPhrase *pPhrase = &pIter->aPhrase[i];
128885 fts3SnippetAdvance(&pPhrase->pHead, &pPhrase->iHead, pIter->nSnippet);
128891 for(i=0; i<pIter->nPhrase; i++){
128892 SnippetPhrase *pPhrase = &pIter->aPhrase[i];
128901 pIter->iCurrent = iStart = iEnd - pIter->nSnippet + 1;
128902 for(i=0; i<pIter->nPhrase; i++){
128903 SnippetPhrase *pPhrase = &pIter->aPhrase[i];
128914 ** iterator pIter.
128917 SnippetIter *pIter, /* Snippet iterator */
128924 int iStart = pIter->iCurrent; /* First token of snippet */
128930 for(i=0; i<pIter->nPhrase; i++){
128931 SnippetPhrase *pPhrase = &pIter->aPhrase[i];
128936 while( iCsr<(iStart+pIter->nSnippet) ){
129505 static int fts3LcsIteratorAdvance(LcsIterator *pIter){
129506 char *pRead = pIter->pRead;
129515 pIter->iPos += (int)(iRead-2);
129518 pIter->pRead = pRead;
129548 LcsIterator *pIter = &aIter[i];
129549 nToken -= pIter->pExpr->pPhrase->nToken;
129550 pIter->iPosOffset = nToken;
129572 LcsIterator *pIter = &aIter[i];
129573 if( pIter->pRead==0 ){
129577 if( pAdv==0 || pIter->iPos<pAdv->iPos ){
129578 pAdv = pIter;
129580 if( nThisLcs==0 || pIter->iPos==pIter[-1].iPos ){
133939 UBreakIterator *pIter; /* ICU break-iterator object */
134049 pCsr->pIter = ubrk_open(UBRK_WORD, p->zLocale, pCsr->aChar, iOut, &status);
134056 ubrk_first(pCsr->pIter);
134066 ubrk_close(pCsr->pIter);
134092 iStart = ubrk_current(pCsr->pIter);
134093 iEnd = ubrk_next(pCsr->pIter);