Lines Matching refs:pSeg
135834 Fts3SegReader *pSeg = 0;
135835 rc = sqlite3Fts3SegReaderPending(p, iIndex, zTerm, nTerm, isPrefix||isScan, &pSeg);
135836 if( rc==SQLITE_OK && pSeg ){
135837 rc = fts3SegReaderCursorAppend(pCsr, pSeg);
135847 Fts3SegReader *pSeg = 0;
135868 iEndBlock, zRoot, nRoot, &pSeg
135871 rc = fts3SegReaderCursorAppend(pCsr, pSeg);
144275 static void fts3SegReaderSetEof(Fts3SegReader *pSeg){
144276 if( !fts3SegReaderIsRootOnly(pSeg) ){
144277 sqlite3_free(pSeg->aNode);
144278 sqlite3_blob_close(pSeg->pBlob);
144279 pSeg->pBlob = 0;
144281 pSeg->aNode = 0;
144816 Fts3SegReader *pSeg, /* Segment reader object */
144821 if( pSeg->aNode ){
144822 if( pSeg->nTerm>nTerm ){
144823 res = memcmp(pSeg->zTerm, zTerm, nTerm);
144825 res = memcmp(pSeg->zTerm, zTerm, pSeg->nTerm);
144828 res = pSeg->nTerm-nTerm;
145466 Fts3SegReader *pSeg /* Segment to delete */
145469 if( pSeg->iStartBlock ){
145473 sqlite3_bind_int64(pDelete, 1, pSeg->iStartBlock);
145474 sqlite3_bind_int64(pDelete, 2, pSeg->iEndBlock);
145634 Fts3SegReader *pSeg;
145635 pSeg = pMsr->apSegment[0];
145637 if( pSeg->pOffsetList==0 ){
145700 Fts3SegReader *pSeg = pCsr->apSegment[i];
145702 int rc = fts3SegReaderNext(p, pSeg, 0);
145704 }while( zTerm && (res = fts3SegReaderTermCmp(pSeg, zTerm, nTerm))<0 );
145706 if( pSeg->bLookup && res!=0 ){
145707 fts3SegReaderSetEof(pSeg);
145747 Fts3SegReader *pSeg = pCsr->apSegment[i];
145748 if( !pSeg->aNode || fts3SegReaderTermCmp(pSeg, zTerm, nTerm) ){
145829 Fts3SegReader *pSeg = apSegment[i];
145830 if( pSeg->bLookup ){
145831 fts3SegReaderSetEof(pSeg);
145833 rc = fts3SegReaderNext(p, pSeg, 0);
147638 Fts3SegReader *pSeg = 0;
147644 pSeg = pCsr->apSegment[j];
147645 if( pSeg->iIdx==i ) break;
147647 assert( j<pCsr->nSegment && pSeg->iIdx==i );
147649 if( pSeg->aNode==0 ){
147651 rc = fts3DeleteSegment(p, pSeg);
147653 rc = fts3RemoveSegdirEntry(p, iAbsLevel, pSeg->iIdx);
147660 const char *zTerm = pSeg->zTerm;
147661 int nTerm = pSeg->nTerm;
147662 rc = fts3TruncateSegment(p, iAbsLevel, pSeg->iIdx, zTerm, nTerm);