• Home
  • Raw
  • Download

Lines Matching refs:pHash

17076     FuncDef *pHash;      /* Next with a different name but the same hash */  member
32948 unsigned int *pHash /* Write the hash value here */
32966 if( pHash ) *pHash = h;
110638 Hash *pHash;
110641 pHash = &db->aDb[iDb].pSchema->idxHash;
110642 pIndex = sqlite3HashInsert(pHash, zIdxName, 0);
112934 Hash *pHash;
112939 pHash = &pDb->pSchema->tblHash;
112940 for(pElem=sqliteHashFirst(pHash); pElem; pElem=sqliteHashNext(pElem)){
112946 pHash = &pDb->pSchema->idxHash;
112947 for(pElem=sqliteHashFirst(pHash); pElem; pElem=sqliteHashNext(pElem)){
115578 for(p=sqlite3BuiltinFunctions.a[h]; p; p=p->u.pHash){
115607 aDef[i].u.pHash = sqlite3BuiltinFunctions.a[h];
118786 for(p=sqlite3BuiltinFunctions.a[i]; p; p=p->u.pHash){
126755 for(p=sqlite3BuiltinFunctions.a[i]; p; p=p->u.pHash ){
136332 Hash *pHash = &db->aDb[iDb].pSchema->trigHash;
136335 pTrig = sqlite3HashInsert(pHash, zName, pTrig);
136642 Hash *pHash;
136645 pHash = &(db->aDb[iDb].pSchema->trigHash);
136646 pTrigger = sqlite3HashInsert(pHash, zName, 0);
166419 SQLITE_PRIVATE int sqlite3Fts3InitTokenizer(Fts3Hash *pHash, const char *,
167362 Fts3Hash *pHash = (Fts3Hash *)pAux;
167435 rc = sqlite3Fts3InitTokenizer(pHash, &z[9], &pTokenizer, pzErr);
167578 rc = sqlite3Fts3InitTokenizer(pHash, "simple", &pTokenizer, pzErr);
170184 Fts3Hash *pHash = (Fts3Hash *)p;
170185 sqlite3Fts3HashClear(pHash);
170186 sqlite3_free(pHash);
170216 Fts3Hash *pHash = 0;
170244 pHash = sqlite3_malloc(sizeof(Fts3Hash));
170245 if( !pHash ){
170248 sqlite3Fts3HashInit(pHash, FTS3_HASH_STRING, 1);
170253 if( sqlite3Fts3HashInsert(pHash, "simple", 7, (void *)pSimple)
170254 || sqlite3Fts3HashInsert(pHash, "porter", 7, (void *)pPorter)
170257 || sqlite3Fts3HashInsert(pHash, "unicode61", 10, (void *)pUnicode)
170260 || (pIcu && sqlite3Fts3HashInsert(pHash, "icu", 4, (void *)pIcu))
170269 rc = sqlite3Fts3ExprInitTestInterface(db, pHash);
170279 && SQLITE_OK==(rc = sqlite3Fts3InitHashTable(db, pHash, "fts3_tokenizer"))
170289 db, "fts1", &fts3Module, (void *)pHash, 0
170293 db, "fts2", &fts3Module, (void *)pHash, 0
170298 db, "fts3", &fts3Module, (void *)pHash, hashDestroy
170302 db, "fts4", &fts3Module, (void *)pHash, 0
170306 rc = sqlite3Fts3InitTok(db, (void *)pHash);
170314 if( pHash ){
170315 sqlite3Fts3HashClear(pHash);
170316 sqlite3_free(pHash);
174025 Fts3Hash *pHash = (Fts3Hash*)sqlite3_user_data(context);
174037 rc = sqlite3Fts3InitTokenizer(pHash, zTokenizer, &pTokenizer, &zErr);
174111 SQLITE_PRIVATE int sqlite3Fts3ExprInitTestInterface(sqlite3 *db, Fts3Hash *pHash){
174113 db, "fts3_exprtest", -1, SQLITE_UTF8, (void*)pHash, fts3ExprTest, 0, 0
174117 -1, SQLITE_UTF8, (void*)pHash, fts3ExprTestRebalance, 0, 0
175247 Fts3Hash *pHash;
175254 pHash = (Fts3Hash *)sqlite3_user_data(context);
175268 pOld = sqlite3Fts3HashInsert(pHash, (void *)zName, nName, pPtr);
175278 pPtr = sqlite3Fts3HashFind(pHash, zName, nName);
175344 Fts3Hash *pHash, /* Tokenizer hash table */
175368 m = (sqlite3_tokenizer_module *)sqlite3Fts3HashFind(pHash,z,(int)strlen(z)+1);
175444 Fts3Hash *pHash;
175477 pHash = (Fts3Hash *)sqlite3_user_data(context);
175478 p = (sqlite3_tokenizer_module *)sqlite3Fts3HashFind(pHash, zName, nName+1);
175657 Fts3Hash *pHash,
175661 void *p = (void *)pHash;
176016 Fts3Hash *pHash,
176024 p = (sqlite3_tokenizer_module *)sqlite3Fts3HashFind(pHash, zName, nName+1);
176098 void *pHash, /* Hash table of tokenizers */
176124 rc = fts3tokQueryTokenizer((Fts3Hash*)pHash, zModule, &pMod, pzErr);
176360 SQLITE_PRIVATE int sqlite3Fts3InitTok(sqlite3 *db, Fts3Hash *pHash){
176389 rc = sqlite3_create_module(db, "fts3tokenize", &fts3tok_module, (void*)pHash);
177148 Fts3Hash *pHash, /* Pending terms hash table to add entry to */
177155 pList = (PendingList *)fts3HashFind(pHash, zToken, nToken);
177160 if( pList==fts3HashInsert(pHash, zToken, nToken, pList) ){
177164 assert( 0==fts3HashFind(pHash, zToken, nToken) );
177296 Fts3Hash *pHash = &p->aIndex[i].hPending;
177297 for(pElem=fts3HashFirst(pHash); pElem; pElem=fts3HashNext(pElem)){
177301 fts3HashClear(pHash);
178102 Fts3Hash *pHash;
178104 pHash = &p->aIndex[iIndex].hPending;
178108 for(pE=fts3HashFirst(pHash); pE; pE=fts3HashNext(pE)){
178146 pE = fts3HashFindElem(pHash, zTerm, nTerm);
215165 static void sqlite3Fts5HashFree(Fts5Hash *pHash){
215166 if( pHash ){
215167 sqlite3Fts5HashClear(pHash);
215168 sqlite3_free(pHash->aSlot);
215169 sqlite3_free(pHash);
215176 static void sqlite3Fts5HashClear(Fts5Hash *pHash){
215178 for(i=0; i<pHash->nSlot; i++){
215181 for(pSlot=pHash->aSlot[i]; pSlot; pSlot=pNext){
215186 memset(pHash->aSlot, 0, pHash->nSlot * sizeof(Fts5HashEntry*));
215187 pHash->nEntry = 0;
215212 static int fts5HashResize(Fts5Hash *pHash){
215213 int nNew = pHash->nSlot*2;
215216 Fts5HashEntry **apOld = pHash->aSlot;
215222 for(i=0; i<pHash->nSlot; i++){
215235 pHash->nSlot = nNew;
215236 pHash->aSlot = apNew;
215241 Fts5Hash *pHash,
215249 if( pHash->eDetail==FTS5_DETAIL_NONE ){
215292 Fts5Hash *pHash,
215305 bNew = (pHash->eDetail==FTS5_DETAIL_FULL);
215308 iHash = fts5HashKey2(pHash->nSlot, (u8)bByte, (const u8*)pToken, nToken);
215309 for(p=pHash->aSlot[iHash]; p; p=p->pHashNext){
215327 if( (pHash->nEntry*2)>=pHash->nSlot ){
215328 int rc = fts5HashResize(pHash);
215330 iHash = fts5HashKey2(pHash->nSlot, (u8)bByte, (const u8*)pToken, nToken);
215341 assert( iHash==fts5HashKey(pHash->nSlot, (u8*)zKey, nToken+1) );
215345 p->pHashNext = pHash->aSlot[iHash];
215346 pHash->aSlot[iHash] = p;
215347 pHash->nEntry++;
215354 if( pHash->eDetail!=FTS5_DETAIL_NONE ){
215356 p->iCol = (pHash->eDetail==FTS5_DETAIL_FULL ? 0 : -1);
215379 for(pp=&pHash->aSlot[iHash]; *pp!=p; pp=&(*pp)->pHashNext);
215392 fts5HashAddPoslistSize(pHash, p, 0);
215397 if( pHash->eDetail!=FTS5_DETAIL_NONE ){
215399 p->iCol = (pHash->eDetail==FTS5_DETAIL_FULL ? 0 : -1);
215405 if( pHash->eDetail==FTS5_DETAIL_NONE ){
215411 if( pHash->eDetail==FTS5_DETAIL_FULL ){
215434 *pHash->pnByte += nIncr;
215491 Fts5Hash *pHash,
215506 for(iSlot=0; iSlot<pHash->nSlot; iSlot++){
215508 for(pIter=pHash->aSlot[iSlot]; pIter; pIter=pIter->pHashNext){
215528 pHash->nEntry = 0;
215538 Fts5Hash *pHash, /* Hash table to query */
215544 unsigned int iHash = fts5HashKey(pHash->nSlot, (const u8*)pTerm, nTerm);
215548 for(p=pHash->aSlot[iHash]; p; p=p->pHashNext){
215561 nList += fts5HashAddPoslistSize(pHash, p, pFaux);
215592 Fts5Hash *pHash,
215598 if( (p = pHash->pScan) ){
215601 fts5HashAddPoslistSize(pHash, p, 0);
215897 Fts5Hash *pHash; /* Hash table for in-memory data */
217544 sqlite3Fts5HashScanNext(p->pHash);
217545 sqlite3Fts5HashScanEntry(p->pHash, &zTerm, &pList, &nList);
217620 sqlite3Fts5HashScanNext(p->pHash);
217621 sqlite3Fts5HashScanEntry(p->pHash, &zTerm, &pList, &nList);
218072 assert( p->pHash );
218078 p->rc = sqlite3Fts5HashScanInit(p->pHash, (const char*)pTerm, nTerm);
218079 sqlite3Fts5HashScanEntry(p->pHash, (const char**)&z, &pList, &nList);
218088 p->rc = sqlite3Fts5HashQuery(p->pHash, sizeof(Fts5Data),
219013 nSeg += (p->pHash ? 1 : 0);
219031 if( p->pHash ){
219241 assert( p->pHash || p->nPendingData==0 );
219242 if( p->pHash ){
219243 sqlite3Fts5HashClear(p->pHash);
220107 Fts5Hash *pHash = p->pHash;
220139 p->rc = sqlite3Fts5HashScanInit(pHash, 0, 0);
220141 while( p->rc==SQLITE_OK && 0==sqlite3Fts5HashScanEof(pHash) ){
220147 sqlite3Fts5HashScanEntry(pHash, &zTerm, &pDoclist, &nDoclist);
220230 if( p->rc==SQLITE_OK ) sqlite3Fts5HashScanNext(pHash);
220232 sqlite3Fts5HashClear(pHash);
220263 assert( p->pHash );
220795 if( p->pHash==0 ){
220796 p->rc = sqlite3Fts5HashNew(p->pConfig, &p->pHash, &p->nPendingData);
220910 sqlite3Fts5HashFree(p->pHash);
220986 p->pHash, p->iWriteRowid, iCol, iPos, FTS5_MAIN_PREFIX, pToken, nToken
220993 rc = sqlite3Fts5HashWrite(p->pHash,