Mercurial > hg > audiodb
diff lshlib.h @ 308:896679d8cc39
Added server-side loading of persistent index (LSH hashtables) via --load_index -d dbName -R radius -l sequenceLength. Queries using these parameters will lookup the memory-resident hashtable instead of loading one from disk.
author | mas01mc |
---|---|
date | Thu, 07 Aug 2008 01:53:38 +0000 |
parents | 921ba500a024 |
children | 81ad865402e7 |
line wrap: on
line diff
--- a/lshlib.h Wed Aug 06 21:23:14 2008 +0000 +++ b/lshlib.h Thu Aug 07 01:53:38 2008 +0000 @@ -259,6 +259,8 @@ // Interface for indexing and retrieval class G: public H{ private: + char* indexName; + // LSH serial data structure file handling void get_lock(int fd, bool exclusive); void release_lock(int fd); @@ -340,6 +342,7 @@ SerialHeaderT* get_lshHeader(){return lshHeader;} void serial_dump_tables(char* filename); float get_mean_collision_rate(){ return (float) pointCount / bucketCount ; } + char* get_indexName(){return indexName;} }; typedef class G LSH;