fts3_hash.c File Reference

Go to the source code of this file.

Functions

static void * fts3HashMalloc (int n)
static void fts3HashFree (void *p)
void sqlite3Fts3HashInit (fts3Hash *pNew, int keyClass, int copyKey)
void sqlite3Fts3HashClear (fts3Hash *pH)
static int fts3StrHash (const void *pKey, int nKey)
static int fts3StrCompare (const void *pKey1, int n1, const void *pKey2, int n2)
static int fts3BinHash (const void *pKey, int nKey)
static int fts3BinCompare (const void *pKey1, int n1, const void *pKey2, int n2)
static int(*)(const void *, int) ftsHashFunction (int keyClass)
static int(*)(const void
*, int, const void *, int) 
ftsCompareFunction (int keyClass)
static void fts3HashInsertElement (fts3Hash *pH, struct _fts3ht *pEntry, fts3HashElem *pNew)
static void fts3Rehash (fts3Hash *pH, int new_size)
static fts3HashElemfts3FindElementByHash (const fts3Hash *pH, const void *pKey, int nKey, int h)
static void fts3RemoveElementByHash (fts3Hash *pH, fts3HashElem *elem, int h)
void * sqlite3Fts3HashFind (const fts3Hash *pH, const void *pKey, int nKey)
void * sqlite3Fts3HashInsert (fts3Hash *pH, const void *pKey, int nKey, void *data)

Function Documentation

static int fts3BinCompare ( const void *  pKey1,
int  n1,
const void *  pKey2,
int  n2 
) [static]

Definition at line 123 of file fts3_hash.c.

Referenced by ftsCompareFunction().

static int fts3BinHash ( const void *  pKey,
int  nKey 
) [static]

Definition at line 115 of file fts3_hash.c.

Referenced by ftsHashFunction().

static fts3HashElem* fts3FindElementByHash ( const fts3Hash pH,
const void *  pKey,
int  nKey,
int  h 
) [static]
static void fts3HashFree ( void *  p  )  [static]
static void fts3HashInsertElement ( fts3Hash pH,
struct _fts3ht *  pEntry,
fts3HashElem pNew 
) [static]

Definition at line 166 of file fts3_hash.c.

References fts3Hash::first, fts3HashElem::next, and fts3HashElem::prev.

Referenced by fts3Rehash(), and sqlite3Fts3HashInsert().

static void* fts3HashMalloc ( int  n  )  [static]

Definition at line 38 of file fts3_hash.c.

References sqlite3_malloc().

Referenced by fts3Rehash(), and sqlite3Fts3HashInsert().

static void fts3Rehash ( fts3Hash pH,
int  new_size 
) [static]
static void fts3RemoveElementByHash ( fts3Hash pH,
fts3HashElem elem,
int  h 
) [static]
static int fts3StrCompare ( const void *  pKey1,
int  n1,
const void *  pKey2,
int  n2 
) [static]

Definition at line 107 of file fts3_hash.c.

Referenced by ftsCompareFunction().

static int fts3StrHash ( const void *  pKey,
int  nKey 
) [static]

Definition at line 97 of file fts3_hash.c.

Referenced by ftsHashFunction().

static int(*)(const void*, int, const void*, int) ftsCompareFunction ( int  keyClass  )  [static]

Definition at line 155 of file fts3_hash.c.

References FTS3_HASH_BINARY, FTS3_HASH_STRING, fts3BinCompare(), and fts3StrCompare().

Referenced by fts3FindElementByHash().

static int(*)(const void*, int) ftsHashFunction ( int  keyClass  )  [static]
void sqlite3Fts3HashClear ( fts3Hash pH  ) 
void* sqlite3Fts3HashFind ( const fts3Hash pH,
const void *  pKey,
int  nKey 
)
void sqlite3Fts3HashInit ( fts3Hash pNew,
int  keyClass,
int  copyKey 
)
void* sqlite3Fts3HashInsert ( fts3Hash pH,
const void *  pKey,
int  nKey,
void *  data 
)

ContextLogger2—ContextLogger2 Logger Daemon Internals—Generated on Mon May 2 13:49:59 2011 by Doxygen 1.6.1