GENIE
knn.h
Go to the documentation of this file.
1 
5 #ifndef KNN_H_
6 #define KNN_H_
7 
8 #include <vector>
9 #include <thrust/device_vector.h>
10 
11 #include <genie/table/inv_table.h>
13 #include <genie/query/query.h>
14 
15 namespace genie
16 {
17 namespace matching
18 {
33 void
35  std::vector<genie::query::Query>& queries,
36  thrust::device_vector<int>& d_top_indexes,
37  thrust::device_vector<int>& d_top_count,
38  int hash_table_size,
39  int max_load,
40  int bitmap_bits);
41 
42 void
43 knn_MT(
44  std::vector<genie::table::inv_table*>& table,
45  std::vector<std::vector<genie::query::Query> >& queries,
46  std::vector<thrust::device_vector<int> >& d_top_indexes,
47  std::vector<thrust::device_vector<int> >& d_top_count,
48  std::vector<int>& hash_table_size,
49  std::vector<int>& max_load,
50  int bitmap_bits);
51 
67 void
70  std::vector<genie::query::Query>& queries,
71  thrust::device_vector<int>& d_top_indexes,
72  thrust::device_vector<int>& d_top_count,
73  int hash_table_size,
74  int max_load,
75  int bitmap_bits);
76 
77 void
79  std::vector<genie::table::inv_table*>& table,
80  std::vector<std::vector<genie::query::Query> >& queries,
81  std::vector<thrust::device_vector<int> >& d_top_indexes,
82  std::vector<thrust::device_vector<int> >& d_top_count,
83  std::vector<int>& hash_table_size,
84  std::vector<int>& max_load,
85  int bitmap_bits);
86 
87 } // namespace matching
88 } // namespace genie
89 
90 #endif
This is the top-level namespace of the project.
The declaration for class inv_table.
Definition: inv_table.h:41
Declaration of query class.
void knn_bijectMap(genie::table::inv_table &table, std::vector< genie::query::Query > &queries, thrust::device_vector< int > &d_top_indexes, thrust::device_vector< int > &d_top_count, int hash_table_size, int max_load, int bitmap_bits)
define class inv_table
void knn_bijectMap_MT(std::vector< genie::table::inv_table *> &table, std::vector< std::vector< genie::query::Query > > &queries, std::vector< thrust::device_vector< int > > &d_top_indexes, std::vector< thrust::device_vector< int > > &d_top_count, std::vector< int > &hash_table_size, std::vector< int > &max_load, int bitmap_bits)
void knn_MT(std::vector< genie::table::inv_table *> &table, std::vector< std::vector< genie::query::Query > > &queries, std::vector< thrust::device_vector< int > > &d_top_indexes, std::vector< thrust::device_vector< int > > &d_top_count, std::vector< int > &hash_table_size, std::vector< int > &max_load, int bitmap_bits)
void knn(genie::table::inv_table &table, std::vector< genie::query::Query > &queries, thrust::device_vector< int > &d_top_indexes, thrust::device_vector< int > &d_top_count, int hash_table_size, int max_load, int bitmap_bits)
define class inv_compre_table