Lines Matching defs:Fts3Expr
116600 typedef struct Fts3Expr Fts3Expr;
116690 Fts3Expr *pExpr; /* Parsed MATCH query string */
116780 ** If Fts3Expr.eType is FTSQUERY_PHRASE and isLoaded is true, then aDoclist
116798 struct Fts3Expr {
116801 Fts3Expr *pParent; /* pParent->pLeft==this or pParent->pRight==this */
116802 Fts3Expr *pLeft; /* Left operand */
116803 Fts3Expr *pRight; /* Right operand */
116913 SQLITE_PRIVATE int sqlite3Fts3EvalPhraseStats(Fts3Cursor *, Fts3Expr *, u32 *);
116933 char **, int, int, int, const char *, int, Fts3Expr **
116935 SQLITE_PRIVATE void sqlite3Fts3ExprFree(Fts3Expr *);
116954 SQLITE_PRIVATE char *sqlite3Fts3EvalPhrasePoslist(Fts3Cursor *, Fts3Expr *, int iCol);
120291 Fts3Expr *pExpr, /* Allocate readers for this expression */
120699 ** expression. Also the Fts3Expr.bDeferred variable is set to true for any
120713 Fts3Expr *pExpr, /* Expression to initialize phrases in */
120751 Fts3Expr *pRoot; /* Root of NEAR/AND cluster */
120765 Fts3Expr *pRoot, /* Root of current AND/NEAR cluster */
120766 Fts3Expr *pExpr, /* Expression to consider */
120768 Fts3Expr ***ppOr, /* Write new OR root to *(*ppOr)++ */
120880 Fts3Expr *pRoot, /* Consider tokens with this root node */
121019 Fts3Expr **apOr;
121022 + sizeof(Fts3Expr *) * nOr * 2
121024 apOr = (Fts3Expr **)&aTC[nToken];
121031 Fts3Expr **ppOr = apOr;
121129 ** Fts3Expr.bEof (non-zero if EOF - there is no next row)
121130 ** Fts3Expr.iDocid (valid if bEof==0. The docid of the next row)
121136 ** FTs3Expr.pPhrase->doclist.nList (length of pList in bytes)
121137 ** FTs3Expr.pPhrase->doclist.pList (pointer to position list)
121162 Fts3Expr *pExpr, /* Expr. to advance to next matching row */
121173 Fts3Expr *pLeft = pExpr->pLeft;
121174 Fts3Expr *pRight = pExpr->pRight;
121209 Fts3Expr *pLeft = pExpr->pLeft;
121210 Fts3Expr *pRight = pExpr->pRight;
121237 Fts3Expr *pLeft = pExpr->pLeft;
121238 Fts3Expr *pRight = pExpr->pRight;
121276 ** (Fts3Expr->pPhrase.doclist.pList/nList) for each phrase in the expression.
121285 static int fts3EvalNearTest(Fts3Expr *pExpr, int *pRc){
121313 Fts3Expr *p;
121369 Fts3Expr *pExpr, /* Expr to test. May or may not be root. */
121402 Fts3Expr *p;
121507 Fts3Expr *pExpr = pCsr->pExpr;
121538 Fts3Expr *pExpr,
121567 ** After allocating the Fts3Expr.aMI[] array for each phrase in the
121570 ** the values in Fts3Expr.aMI[] according to the position-list currently
121571 ** found in Fts3Expr.pPhrase->doclist.pList for each of the phrase
121574 static void fts3EvalUpdateCounts(Fts3Expr *pExpr){
121610 ** populates the Fts3Expr.aMI[] array for expression pExpr. If pExpr is part
121619 Fts3Expr *pExpr /* FTSQUERY_PHRASE expression */
121626 Fts3Expr *pRoot; /* Root of NEAR expression */
121627 Fts3Expr *p; /* Iterator used for several purposes */
121644 Fts3Expr *pE = (p->eType==FTSQUERY_PHRASE?p:p->pRight);
121731 Fts3Expr *pExpr, /* Phrase expression */
121779 Fts3Expr *pExpr, /* Phrase to return doclist for */
122495 ** and other information (column names etc.) in pParse. Create an Fts3Expr
122500 ** Fts3Expr structure (if any) by passing it to sqlite3_free().
122509 Fts3Expr **ppExpr, /* OUT: expression */
122516 Fts3Expr *pRet = 0;
122527 nByte = sizeof(Fts3Expr) + sizeof(Fts3Phrase) + nToken;
122528 pRet = (Fts3Expr *)fts3MallocZero(nByte);
122588 ** input buffer and create an Fts3Expr structure of type FTSQUERY_PHRASE
122592 ** allocated Fts3Expr structure. Otherwise, either SQLITE_NOMEM (out of memory
122599 Fts3Expr **ppExpr /* OUT: expression */
122604 Fts3Expr *p = 0;
122609 const int nSpace = sizeof(Fts3Expr) + sizeof(Fts3Phrase);
122612 /* The final Fts3Expr data structure, including the Fts3Phrase,
122621 ** Buffer p: Points to the Fts3Expr structure, followed by the Fts3Phrase
122628 ** appends buffer zTemp to buffer p, and fills in the Fts3Expr and Fts3Phrase
122710 static int fts3ExprParse(ParseContext *, const char *, int, Fts3Expr **, int *);
122713 ** The output variable *ppExpr is populated with an allocated Fts3Expr
122723 Fts3Expr **ppExpr, /* OUT: expression */
122741 Fts3Expr *pRet = 0;
122791 pRet = (Fts3Expr *)fts3MallocZero(sizeof(Fts3Expr));
122874 ** The argument is an Fts3Expr structure for a binary operator (any type
122892 static int opPrecedence(Fts3Expr *p){
122914 Fts3Expr **ppHead, /* Pointer to the root node of a tree */
122915 Fts3Expr *pPrev, /* Node most recently inserted into the tree */
122916 Fts3Expr *pNew /* New binary node to insert into expression tree */
122918 Fts3Expr *pSplit = pPrev;
122947 Fts3Expr **ppExpr, /* OUT: Parsed query structure */
122950 Fts3Expr *pRet = 0;
122951 Fts3Expr *pPrev = 0;
122952 Fts3Expr *pNotBranch = 0; /* Only used in legacy parse mode */
122959 Fts3Expr *p = 0;
122969 Fts3Expr *pNot = fts3MallocZero(sizeof(Fts3Expr));
122999 Fts3Expr *pAnd;
123001 pAnd = fts3MallocZero(sizeof(Fts3Expr));
123061 Fts3Expr *pIter = pNotBranch;
123085 ** query expression and create a tree of Fts3Expr structures representing the
123114 Fts3Expr **ppExpr /* OUT: Parsed query structure */
123149 SQLITE_PRIVATE void sqlite3Fts3ExprFree(Fts3Expr *p){
123207 static char *exprToString(Fts3Expr *pExpr, char *zBuf){
123274 Fts3Expr *pExpr;
128697 ** Fts3Expr.aDoclist[]/nDoclist.
128797 Fts3Expr *pExpr, /* Expression to iterate phrases of */
128799 int (*x)(Fts3Expr*,int,void*), /* Callback function to invoke for phrases */
128829 Fts3Expr *pExpr, /* Expression to iterate phrases of */
128830 int (*x)(Fts3Expr*,int,void*), /* Callback function to invoke for phrases */
128839 ** for each phrase into Fts3Expr.aDoclist[]/nDoclist. See also
128842 static int fts3ExprLoadDoclistsCb(Fts3Expr *pExpr, int iPhrase, void *ctx){
128879 static int fts3ExprPhraseCountCb(Fts3Expr *pExpr, int iPhrase, void *ctx){
128885 static int fts3ExprPhraseCount(Fts3Expr *pExpr){
129017 static int fts3SnippetFindPositions(Fts3Expr *pExpr, int iPhrase, void *ctx){
129411 Fts3Expr *pExpr, /* Phrase expression node */
129427 Fts3Expr *pExpr, /* Phrase expression node */
129526 Fts3Expr *pExpr; /* Pointer to phrase expression */
129539 Fts3Expr *pExpr, /* Phrase expression node */
129736 Fts3Expr *pExpr;
129953 static int fts3ExprTermOffsetInit(Fts3Expr *pExpr, int iPhrase, void *ctx){