Lines Matching defs:apSegment
116885 Fts3SegReader **apSegment; /* Array of Fts3SegReader objects */
116886 int nSegment; /* Size of apSegment array */
119242 ** Append SegReader object pNew to the end of the pCsr->apSegment[] array.
119251 apNew = (Fts3SegReader **)sqlite3_realloc(pCsr->apSegment, nByte);
119256 pCsr->apSegment = apNew;
119258 pCsr->apSegment[pCsr->nSegment++] = pNew;
126536 Fts3SegReader *pReader = pMsr->apSegment[ii];
126835 ** Argument apSegment is an array of nSegment elements. It is known that
126841 Fts3SegReader **apSegment, /* Array to sort entries of */
126842 int nSegment, /* Size of apSegment array */
126855 if( xCmp(apSegment[j], apSegment[j+1])<0 ) break;
126856 pTmp = apSegment[j+1];
126857 apSegment[j+1] = apSegment[j];
126858 apSegment[j] = pTmp;
126865 assert( xCmp(apSegment[i], apSegment[i+1])<0 );
127414 Fts3SegReader **apSegment, /* Array of SegReader objects */
127415 int nReader /* Size of array apSegment */
127423 Fts3SegReader *pSegment = apSegment[i];
127536 Fts3SegReader **apSegment = pMsr->apSegment;
127548 pSeg = pMsr->apSegment[0];
127558 sqlite3_int64 iDocid = apSegment[0]->iDocid;
127560 rc = fts3SegReaderNextDocid(p, apSegment[0], &pList, &nList);
127564 && apSegment[j]->pOffsetList
127565 && apSegment[j]->iDocid==iDocid
127567 rc = fts3SegReaderNextDocid(p, apSegment[j], 0, 0);
127571 fts3SegReaderSort(pMsr->apSegment, nMerge, j, xCmp);
127578 if( fts3SegReaderIsPending(apSegment[0]) ){
127613 Fts3SegReader *pSeg = pCsr->apSegment[i];
127623 fts3SegReaderSort(pCsr->apSegment, nSeg, nSeg, fts3SegReaderCmp);
127660 Fts3SegReader *pSeg = pCsr->apSegment[i];
127669 rc = fts3SegReaderFirstDocid(p, pCsr->apSegment[i]);
127672 fts3SegReaderSort(pCsr->apSegment, i, i, xCmp);
127703 pCsr->apSegment[i]->pOffsetList = 0;
127704 pCsr->apSegment[i]->nOffsetList = 0;
127705 pCsr->apSegment[i]->iDocid = 0;
127725 Fts3SegReader **apSegment = pCsr->apSegment;
127738 /* Advance the first pCsr->nAdvance entries in the apSegment[] array
127742 Fts3SegReader *pSeg = apSegment[i];
127750 fts3SegReaderSort(apSegment, nSegment, pCsr->nAdvance, fts3SegReaderCmp);
127755 if( apSegment[0]->aNode==0 ) break;
127757 pCsr->nTerm = apSegment[0]->nTerm;
127758 pCsr->zTerm = apSegment[0]->zTerm;
127760 /* If this is a prefix-search, and if the term that apSegment[0] points
127765 ** of segment apSegment[0] is not a match, exit early.
127778 && apSegment[nMerge]->aNode
127779 && apSegment[nMerge]->nTerm==pCsr->nTerm
127780 && 0==memcmp(pCsr->zTerm, apSegment[nMerge]->zTerm, pCsr->nTerm)
127789 && (p->bDescIdx==0 || fts3SegReaderIsPending(apSegment[0])==0)
127791 pCsr->nDoclist = apSegment[0]->nDoclist;
127792 if( fts3SegReaderIsPending(apSegment[0]) ){
127793 rc = fts3MsrBufferData(pCsr, apSegment[0]->aDoclist, pCsr->nDoclist);
127796 pCsr->aDoclist = apSegment[0]->aDoclist;
127808 fts3SegReaderFirstDocid(p, apSegment[i]);
127810 fts3SegReaderSort(apSegment, nMerge, nMerge, xCmp);
127811 while( apSegment[0]->pOffsetList ){
127816 sqlite3_int64 iDocid = apSegment[0]->iDocid;
127817 fts3SegReaderNextDocid(p, apSegment[0], &pList, &nList);
127820 && apSegment[j]->pOffsetList
127821 && apSegment[j]->iDocid==iDocid
127823 fts3SegReaderNextDocid(p, apSegment[j], 0, 0);
127875 fts3SegReaderSort(apSegment, nMerge, j, xCmp);
127896 sqlite3Fts3SegReaderFree(pCsr->apSegment[i]);
127898 sqlite3_free(pCsr->apSegment);
127902 pCsr->apSegment = 0;
127986 p, iLangid, iIndex, iLevel, csr.apSegment, csr.nSegment