Lines Matching refs:pSeg
135816 Fts3SegReader *pSeg = 0;
135817 rc = sqlite3Fts3SegReaderPending(p, iIndex, zTerm, nTerm, isPrefix||isScan, &pSeg);
135818 if( rc==SQLITE_OK && pSeg ){
135819 rc = fts3SegReaderCursorAppend(pCsr, pSeg);
135829 Fts3SegReader *pSeg = 0;
135850 iEndBlock, zRoot, nRoot, &pSeg
135853 rc = fts3SegReaderCursorAppend(pCsr, pSeg);
144245 static void fts3SegReaderSetEof(Fts3SegReader *pSeg){
144246 if( !fts3SegReaderIsRootOnly(pSeg) ){
144247 sqlite3_free(pSeg->aNode);
144248 sqlite3_blob_close(pSeg->pBlob);
144249 pSeg->pBlob = 0;
144251 pSeg->aNode = 0;
144786 Fts3SegReader *pSeg, /* Segment reader object */
144791 if( pSeg->aNode ){
144792 if( pSeg->nTerm>nTerm ){
144793 res = memcmp(pSeg->zTerm, zTerm, nTerm);
144795 res = memcmp(pSeg->zTerm, zTerm, pSeg->nTerm);
144798 res = pSeg->nTerm-nTerm;
145436 Fts3SegReader *pSeg /* Segment to delete */
145439 if( pSeg->iStartBlock ){
145443 sqlite3_bind_int64(pDelete, 1, pSeg->iStartBlock);
145444 sqlite3_bind_int64(pDelete, 2, pSeg->iEndBlock);
145604 Fts3SegReader *pSeg;
145605 pSeg = pMsr->apSegment[0];
145607 if( pSeg->pOffsetList==0 ){
145670 Fts3SegReader *pSeg = pCsr->apSegment[i];
145672 int rc = fts3SegReaderNext(p, pSeg, 0);
145674 }while( zTerm && (res = fts3SegReaderTermCmp(pSeg, zTerm, nTerm))<0 );
145676 if( pSeg->bLookup && res!=0 ){
145677 fts3SegReaderSetEof(pSeg);
145717 Fts3SegReader *pSeg = pCsr->apSegment[i];
145718 if( !pSeg->aNode || fts3SegReaderTermCmp(pSeg, zTerm, nTerm) ){
145799 Fts3SegReader *pSeg = apSegment[i];
145800 if( pSeg->bLookup ){
145801 fts3SegReaderSetEof(pSeg);
145803 rc = fts3SegReaderNext(p, pSeg, 0);
147608 Fts3SegReader *pSeg = 0;
147614 pSeg = pCsr->apSegment[j];
147615 if( pSeg->iIdx==i ) break;
147617 assert( j<pCsr->nSegment && pSeg->iIdx==i );
147619 if( pSeg->aNode==0 ){
147621 rc = fts3DeleteSegment(p, pSeg);
147623 rc = fts3RemoveSegdirEntry(p, iAbsLevel, pSeg->iIdx);
147630 const char *zTerm = pSeg->zTerm;
147631 int nTerm = pSeg->nTerm;
147632 rc = fts3TruncateSegment(p, iAbsLevel, pSeg->iIdx, zTerm, nTerm);