Lines Matching refs:pHash
14388 FuncDef *pHash; /* Next with a different name but the same hash */ member
29439 unsigned int *pHash /* Write the hash value here */
29456 *pHash = h;
100361 Hash *pHash;
100364 pHash = &db->aDb[iDb].pSchema->idxHash;
100365 pIndex = sqlite3HashInsert(pHash, zIdxName, 0);
102198 Hash *pHash;
102203 pHash = &pDb->pSchema->tblHash;
102204 for(pElem=sqliteHashFirst(pHash); pElem; pElem=sqliteHashNext(pElem)){
102210 pHash = &pDb->pSchema->idxHash;
102211 for(pElem=sqliteHashFirst(pHash); pElem; pElem=sqliteHashNext(pElem)){
104639 for(p=sqlite3BuiltinFunctions.a[h]; p; p=p->u.pHash){
104667 aDef[i].u.pHash = sqlite3BuiltinFunctions.a[h];
107604 for(p=sqlite3BuiltinFunctions.a[i]; p; p=p->u.pHash){
123127 Hash *pHash = &db->aDb[iDb].pSchema->trigHash;
123129 pTrig = sqlite3HashInsert(pHash, zName, pTrig);
123380 Hash *pHash;
123383 pHash = &(db->aDb[iDb].pSchema->trigHash);
123384 pTrigger = sqlite3HashInsert(pHash, zName, 0);
146206 SQLITE_PRIVATE int sqlite3Fts3InitTokenizer(Fts3Hash *pHash, const char *,
147091 Fts3Hash *pHash = (Fts3Hash *)pAux;
147164 rc = sqlite3Fts3InitTokenizer(pHash, &z[9], &pTokenizer, pzErr);
147307 rc = sqlite3Fts3InitTokenizer(pHash, "simple", &pTokenizer, pzErr);
149839 Fts3Hash *pHash = (Fts3Hash *)p;
149840 sqlite3Fts3HashClear(pHash);
149841 sqlite3_free(pHash);
149871 Fts3Hash *pHash = 0;
149899 pHash = sqlite3_malloc(sizeof(Fts3Hash));
149900 if( !pHash ){
149903 sqlite3Fts3HashInit(pHash, FTS3_HASH_STRING, 1);
149908 if( sqlite3Fts3HashInsert(pHash, "simple", 7, (void *)pSimple)
149909 || sqlite3Fts3HashInsert(pHash, "porter", 7, (void *)pPorter)
149912 || sqlite3Fts3HashInsert(pHash, "unicode61", 10, (void *)pUnicode)
149915 || (pIcu && sqlite3Fts3HashInsert(pHash, "icu", 4, (void *)pIcu))
149934 && SQLITE_OK==(rc = sqlite3Fts3InitHashTable(db, pHash, "fts3_tokenizer"))
149944 db, "fts1", &fts3Module, (void *)pHash, 0
149948 db, "fts2", &fts3Module, (void *)pHash, 0
149953 db, "fts3", &fts3Module, (void *)pHash, hashDestroy
149957 db, "fts4", &fts3Module, (void *)pHash, 0
149961 rc = sqlite3Fts3InitTok(db, (void *)pHash);
149969 if( pHash ){
149970 sqlite3Fts3HashClear(pHash);
149971 sqlite3_free(pHash);
154917 Fts3Hash *pHash;
154924 pHash = (Fts3Hash *)sqlite3_user_data(context);
154938 pOld = sqlite3Fts3HashInsert(pHash, (void *)zName, nName, pPtr);
154948 pPtr = sqlite3Fts3HashFind(pHash, zName, nName);
155012 Fts3Hash *pHash, /* Tokenizer hash table */
155036 m = (sqlite3_tokenizer_module *)sqlite3Fts3HashFind(pHash,z,(int)strlen(z)+1);
155112 Fts3Hash *pHash;
155145 pHash = (Fts3Hash *)sqlite3_user_data(context);
155146 p = (sqlite3_tokenizer_module *)sqlite3Fts3HashFind(pHash, zName, nName+1);
155323 Fts3Hash *pHash,
155327 void *p = (void *)pHash;
155682 Fts3Hash *pHash,
155690 p = (sqlite3_tokenizer_module *)sqlite3Fts3HashFind(pHash, zName, nName+1);
155764 void *pHash, /* Hash table of tokenizers */
155790 rc = fts3tokQueryTokenizer((Fts3Hash*)pHash, zModule, &pMod, pzErr);
156026 SQLITE_PRIVATE int sqlite3Fts3InitTok(sqlite3 *db, Fts3Hash *pHash){
156054 rc = sqlite3_create_module(db, "fts3tokenize", &fts3tok_module, (void*)pHash);
156811 Fts3Hash *pHash, /* Pending terms hash table to add entry to */
156818 pList = (PendingList *)fts3HashFind(pHash, zToken, nToken);
156823 if( pList==fts3HashInsert(pHash, zToken, nToken, pList) ){
156827 assert( 0==fts3HashFind(pHash, zToken, nToken) );
156959 Fts3Hash *pHash = &p->aIndex[i].hPending;
156960 for(pElem=fts3HashFirst(pHash); pElem; pElem=fts3HashNext(pElem)){
156964 fts3HashClear(pHash);
157755 Fts3Hash *pHash;
157757 pHash = &p->aIndex[iIndex].hPending;
157761 for(pE=fts3HashFirst(pHash); pE; pE=fts3HashNext(pE)){
157799 pE = fts3HashFindElem(pHash, zTerm, nTerm);
189707 static void sqlite3Fts5HashFree(Fts5Hash *pHash){
189708 if( pHash ){
189709 sqlite3Fts5HashClear(pHash);
189710 sqlite3_free(pHash->aSlot);
189711 sqlite3_free(pHash);
189718 static void sqlite3Fts5HashClear(Fts5Hash *pHash){
189720 for(i=0; i<pHash->nSlot; i++){
189723 for(pSlot=pHash->aSlot[i]; pSlot; pSlot=pNext){
189728 memset(pHash->aSlot, 0, pHash->nSlot * sizeof(Fts5HashEntry*));
189729 pHash->nEntry = 0;
189754 static int fts5HashResize(Fts5Hash *pHash){
189755 int nNew = pHash->nSlot*2;
189758 Fts5HashEntry **apOld = pHash->aSlot;
189764 for(i=0; i<pHash->nSlot; i++){
189776 pHash->nSlot = nNew;
189777 pHash->aSlot = apNew;
189781 static void fts5HashAddPoslistSize(Fts5Hash *pHash, Fts5HashEntry *p){
189784 if( pHash->eDetail==FTS5_DETAIL_NONE ){
189822 Fts5Hash *pHash,
189835 bNew = (pHash->eDetail==FTS5_DETAIL_FULL);
189838 iHash = fts5HashKey2(pHash->nSlot, (u8)bByte, (const u8*)pToken, nToken);
189839 for(p=pHash->aSlot[iHash]; p; p=p->pHashNext){
189857 if( (pHash->nEntry*2)>=pHash->nSlot ){
189858 int rc = fts5HashResize(pHash);
189860 iHash = fts5HashKey2(pHash->nSlot, (u8)bByte, (const u8*)pToken, nToken);
189871 assert( iHash==fts5HashKey(pHash->nSlot, (u8*)zKey, nToken+1) );
189875 p->pHashNext = pHash->aSlot[iHash];
189876 pHash->aSlot[iHash] = p;
189877 pHash->nEntry++;
189884 if( pHash->eDetail!=FTS5_DETAIL_NONE ){
189886 p->iCol = (pHash->eDetail==FTS5_DETAIL_FULL ? 0 : -1);
189909 for(pp=&pHash->aSlot[iHash]; *pp!=p; pp=&(*pp)->pHashNext);
189922 fts5HashAddPoslistSize(pHash, p);
189927 if( pHash->eDetail!=FTS5_DETAIL_NONE ){
189929 p->iCol = (pHash->eDetail==FTS5_DETAIL_FULL ? 0 : -1);
189935 if( pHash->eDetail==FTS5_DETAIL_NONE ){
189941 if( pHash->eDetail==FTS5_DETAIL_FULL ){
189964 *pHash->pnByte += nIncr;
190021 Fts5Hash *pHash,
190036 for(iSlot=0; iSlot<pHash->nSlot; iSlot++){
190038 for(pIter=pHash->aSlot[iSlot]; pIter; pIter=pIter->pHashNext){
190056 pHash->nEntry = 0;
190066 Fts5Hash *pHash, /* Hash table to query */
190071 unsigned int iHash = fts5HashKey(pHash->nSlot, (const u8*)pTerm, nTerm);
190075 for(p=pHash->aSlot[iHash]; p; p=p->pHashNext){
190081 fts5HashAddPoslistSize(pHash, p);
190109 Fts5Hash *pHash,
190115 if( (p = pHash->pScan) ){
190118 fts5HashAddPoslistSize(pHash, p);
190420 Fts5Hash *pHash; /* Hash table for in-memory data */
192057 sqlite3Fts5HashScanNext(p->pHash);
192058 sqlite3Fts5HashScanEntry(p->pHash, &zTerm, &pList, &nList);
192133 sqlite3Fts5HashScanNext(p->pHash);
192134 sqlite3Fts5HashScanEntry(p->pHash, &zTerm, &pList, &nList);
192580 assert( p->pHash );
192584 p->rc = sqlite3Fts5HashScanInit(p->pHash, (const char*)pTerm, nTerm);
192585 sqlite3Fts5HashScanEntry(p->pHash, (const char**)&z, &pList, &nList);
192589 sqlite3Fts5HashQuery(p->pHash, (const char*)pTerm, nTerm, &pList, &nList);
193512 nSeg += (p->pHash ? 1 : 0);
193532 if( p->pHash ){
193741 assert( p->pHash || p->nPendingData==0 );
193742 if( p->pHash ){
193743 sqlite3Fts5HashClear(p->pHash);
194592 Fts5Hash *pHash = p->pHash;
194624 p->rc = sqlite3Fts5HashScanInit(pHash, 0, 0);
194626 while( p->rc==SQLITE_OK && 0==sqlite3Fts5HashScanEof(pHash) ){
194632 sqlite3Fts5HashScanEntry(pHash, &zTerm, &pDoclist, &nDoclist);
194713 sqlite3Fts5HashScanNext(pHash);
194715 sqlite3Fts5HashClear(pHash);
194746 assert( p->pHash );
195244 if( p->pHash==0 ){
195245 p->rc = sqlite3Fts5HashNew(p->pConfig, &p->pHash, &p->nPendingData);
195358 sqlite3Fts5HashFree(p->pHash);
195427 p->pHash, p->iWriteRowid, iCol, iPos, FTS5_MAIN_PREFIX, pToken, nToken
195434 rc = sqlite3Fts5HashWrite(p->pHash,