Lines Matching refs:pHash

15462     FuncDef *pHash;      /* Next with a different name but the same hash */  member
30235 unsigned int *pHash /* Write the hash value here */
30253 if( pHash ) *pHash = h;
102080 Hash *pHash;
102083 pHash = &db->aDb[iDb].pSchema->idxHash;
102084 pIndex = sqlite3HashInsert(pHash, zIdxName, 0);
103931 Hash *pHash;
103936 pHash = &pDb->pSchema->tblHash;
103937 for(pElem=sqliteHashFirst(pHash); pElem; pElem=sqliteHashNext(pElem)){
103943 pHash = &pDb->pSchema->idxHash;
103944 for(pElem=sqliteHashFirst(pHash); pElem; pElem=sqliteHashNext(pElem)){
106369 for(p=sqlite3BuiltinFunctions.a[h]; p; p=p->u.pHash){
106398 aDef[i].u.pHash = sqlite3BuiltinFunctions.a[h];
109401 for(p=sqlite3BuiltinFunctions.a[i]; p; p=p->u.pHash){
116529 for(p=sqlite3BuiltinFunctions.a[i]; p; p=p->u.pHash ){
125261 Hash *pHash = &db->aDb[iDb].pSchema->trigHash;
125263 pTrig = sqlite3HashInsert(pHash, zName, pTrig);
125540 Hash *pHash;
125543 pHash = &(db->aDb[iDb].pSchema->trigHash);
125544 pTrigger = sqlite3HashInsert(pHash, zName, 0);
149034 SQLITE_PRIVATE int sqlite3Fts3InitTokenizer(Fts3Hash *pHash, const char *,
149919 Fts3Hash *pHash = (Fts3Hash *)pAux;
149992 rc = sqlite3Fts3InitTokenizer(pHash, &z[9], &pTokenizer, pzErr);
150135 rc = sqlite3Fts3InitTokenizer(pHash, "simple", &pTokenizer, pzErr);
152678 Fts3Hash *pHash = (Fts3Hash *)p;
152679 sqlite3Fts3HashClear(pHash);
152680 sqlite3_free(pHash);
152710 Fts3Hash *pHash = 0;
152738 pHash = sqlite3_malloc(sizeof(Fts3Hash));
152739 if( !pHash ){
152742 sqlite3Fts3HashInit(pHash, FTS3_HASH_STRING, 1);
152747 if( sqlite3Fts3HashInsert(pHash, "simple", 7, (void *)pSimple)
152748 || sqlite3Fts3HashInsert(pHash, "porter", 7, (void *)pPorter)
152751 || sqlite3Fts3HashInsert(pHash, "unicode61", 10, (void *)pUnicode)
152754 || (pIcu && sqlite3Fts3HashInsert(pHash, "icu", 4, (void *)pIcu))
152772 && SQLITE_OK==(rc = sqlite3Fts3InitHashTable(db, pHash, "fts3_tokenizer"))
152780 db, "fts3", &fts3Module, (void *)pHash, hashDestroy
152784 db, "fts4", &fts3Module, (void *)pHash, 0
152788 rc = sqlite3Fts3InitTok(db, (void *)pHash);
152796 if( pHash ){
152797 sqlite3Fts3HashClear(pHash);
152798 sqlite3_free(pHash);
157744 Fts3Hash *pHash;
157751 pHash = (Fts3Hash *)sqlite3_user_data(context);
157765 pOld = sqlite3Fts3HashInsert(pHash, (void *)zName, nName, pPtr);
157775 pPtr = sqlite3Fts3HashFind(pHash, zName, nName);
157839 Fts3Hash *pHash, /* Tokenizer hash table */
157863 m = (sqlite3_tokenizer_module *)sqlite3Fts3HashFind(pHash,z,(int)strlen(z)+1);
157939 Fts3Hash *pHash;
157972 pHash = (Fts3Hash *)sqlite3_user_data(context);
157973 p = (sqlite3_tokenizer_module *)sqlite3Fts3HashFind(pHash, zName, nName+1);
158150 Fts3Hash *pHash,
158154 void *p = (void *)pHash;
158509 Fts3Hash *pHash,
158517 p = (sqlite3_tokenizer_module *)sqlite3Fts3HashFind(pHash, zName, nName+1);
158591 void *pHash, /* Hash table of tokenizers */
158617 rc = fts3tokQueryTokenizer((Fts3Hash*)pHash, zModule, &pMod, pzErr);
158853 SQLITE_PRIVATE int sqlite3Fts3InitTok(sqlite3 *db, Fts3Hash *pHash){
158881 rc = sqlite3_create_module(db, "fts3tokenize", &fts3tok_module, (void*)pHash);
159639 Fts3Hash *pHash, /* Pending terms hash table to add entry to */
159646 pList = (PendingList *)fts3HashFind(pHash, zToken, nToken);
159651 if( pList==fts3HashInsert(pHash, zToken, nToken, pList) ){
159655 assert( 0==fts3HashFind(pHash, zToken, nToken) );
159787 Fts3Hash *pHash = &p->aIndex[i].hPending;
159788 for(pElem=fts3HashFirst(pHash); pElem; pElem=fts3HashNext(pElem)){
159792 fts3HashClear(pHash);
160583 Fts3Hash *pHash;
160585 pHash = &p->aIndex[iIndex].hPending;
160589 for(pE=fts3HashFirst(pHash); pE; pE=fts3HashNext(pE)){
160627 pE = fts3HashFindElem(pHash, zTerm, nTerm);
193836 static void sqlite3Fts5HashFree(Fts5Hash *pHash){
193837 if( pHash ){
193838 sqlite3Fts5HashClear(pHash);
193839 sqlite3_free(pHash->aSlot);
193840 sqlite3_free(pHash);
193847 static void sqlite3Fts5HashClear(Fts5Hash *pHash){
193849 for(i=0; i<pHash->nSlot; i++){
193852 for(pSlot=pHash->aSlot[i]; pSlot; pSlot=pNext){
193857 memset(pHash->aSlot, 0, pHash->nSlot * sizeof(Fts5HashEntry*));
193858 pHash->nEntry = 0;
193883 static int fts5HashResize(Fts5Hash *pHash){
193884 int nNew = pHash->nSlot*2;
193887 Fts5HashEntry **apOld = pHash->aSlot;
193893 for(i=0; i<pHash->nSlot; i++){
193906 pHash->nSlot = nNew;
193907 pHash->aSlot = apNew;
193911 static void fts5HashAddPoslistSize(Fts5Hash *pHash, Fts5HashEntry *p){
193914 if( pHash->eDetail==FTS5_DETAIL_NONE ){
193952 Fts5Hash *pHash,
193965 bNew = (pHash->eDetail==FTS5_DETAIL_FULL);
193968 iHash = fts5HashKey2(pHash->nSlot, (u8)bByte, (const u8*)pToken, nToken);
193969 for(p=pHash->aSlot[iHash]; p; p=p->pHashNext){
193987 if( (pHash->nEntry*2)>=pHash->nSlot ){
193988 int rc = fts5HashResize(pHash);
193990 iHash = fts5HashKey2(pHash->nSlot, (u8)bByte, (const u8*)pToken, nToken);
194001 assert( iHash==fts5HashKey(pHash->nSlot, (u8*)zKey, nToken+1) );
194005 p->pHashNext = pHash->aSlot[iHash];
194006 pHash->aSlot[iHash] = p;
194007 pHash->nEntry++;
194014 if( pHash->eDetail!=FTS5_DETAIL_NONE ){
194016 p->iCol = (pHash->eDetail==FTS5_DETAIL_FULL ? 0 : -1);
194039 for(pp=&pHash->aSlot[iHash]; *pp!=p; pp=&(*pp)->pHashNext);
194052 fts5HashAddPoslistSize(pHash, p);
194057 if( pHash->eDetail!=FTS5_DETAIL_NONE ){
194059 p->iCol = (pHash->eDetail==FTS5_DETAIL_FULL ? 0 : -1);
194065 if( pHash->eDetail==FTS5_DETAIL_NONE ){
194071 if( pHash->eDetail==FTS5_DETAIL_FULL ){
194094 *pHash->pnByte += nIncr;
194151 Fts5Hash *pHash,
194166 for(iSlot=0; iSlot<pHash->nSlot; iSlot++){
194168 for(pIter=pHash->aSlot[iSlot]; pIter; pIter=pIter->pHashNext){
194186 pHash->nEntry = 0;
194196 Fts5Hash *pHash, /* Hash table to query */
194201 unsigned int iHash = fts5HashKey(pHash->nSlot, (const u8*)pTerm, nTerm);
194205 for(p=pHash->aSlot[iHash]; p; p=p->pHashNext){
194211 fts5HashAddPoslistSize(pHash, p);
194239 Fts5Hash *pHash,
194245 if( (p = pHash->pScan) ){
194248 fts5HashAddPoslistSize(pHash, p);
194550 Fts5Hash *pHash; /* Hash table for in-memory data */
196189 sqlite3Fts5HashScanNext(p->pHash);
196190 sqlite3Fts5HashScanEntry(p->pHash, &zTerm, &pList, &nList);
196265 sqlite3Fts5HashScanNext(p->pHash);
196266 sqlite3Fts5HashScanEntry(p->pHash, &zTerm, &pList, &nList);
196712 assert( p->pHash );
196716 p->rc = sqlite3Fts5HashScanInit(p->pHash, (const char*)pTerm, nTerm);
196717 sqlite3Fts5HashScanEntry(p->pHash, (const char**)&z, &pList, &nList);
196721 sqlite3Fts5HashQuery(p->pHash, (const char*)pTerm, nTerm, &pList, &nList);
197644 nSeg += (p->pHash ? 1 : 0);
197664 if( p->pHash ){
197873 assert( p->pHash || p->nPendingData==0 );
197874 if( p->pHash ){
197875 sqlite3Fts5HashClear(p->pHash);
198724 Fts5Hash *pHash = p->pHash;
198756 p->rc = sqlite3Fts5HashScanInit(pHash, 0, 0);
198758 while( p->rc==SQLITE_OK && 0==sqlite3Fts5HashScanEof(pHash) ){
198764 sqlite3Fts5HashScanEntry(pHash, &zTerm, &pDoclist, &nDoclist);
198845 sqlite3Fts5HashScanNext(pHash);
198847 sqlite3Fts5HashClear(pHash);
198878 assert( p->pHash );
199383 if( p->pHash==0 ){
199384 p->rc = sqlite3Fts5HashNew(p->pConfig, &p->pHash, &p->nPendingData);
199497 sqlite3Fts5HashFree(p->pHash);
199566 p->pHash, p->iWriteRowid, iCol, iPos, FTS5_MAIN_PREFIX, pToken, nToken
199573 rc = sqlite3Fts5HashWrite(p->pHash,