The multithread-supported hash table, holding buckets.
More...
#include <Common/MultiThreadHashTable.h>
|
uint32_t | hash_mask |
|
uint32_t | skip_bits |
|
vector< MtBucket > | buckets |
|
The multithread-supported hash table, holding buckets.
- Todo:
- Improve the efficiency of build phase
◆ MultiThreadHashTable()
INTELLI::MultiThreadHashTable::MultiThreadHashTable |
( |
size_t |
bks | ) |
|
pre-init with several buckets
- Parameters
-
◆ buildTable() [1/2]
void INTELLI::MultiThreadHashTable::buildTable |
( |
TuplePtr * |
tps, |
|
|
size_t |
len |
|
) |
| |
build the hashtable from tuple memory aray
- Parameters
-
tps | the tuple aray |
len | the length |
- Note
- This is thread-safe
- Warning
- This function with pointer is NOT intended for API, but only inline use
◆ buildTable() [2/2]
void INTELLI::MultiThreadHashTable::buildTable |
( |
TuplePtrQueue |
tps | ) |
|
build the hashtable from tuple queue
- Parameters
-
- Note
- This is thread-safe
◆ probeTuple()
size_t INTELLI::MultiThreadHashTable::probeTuple |
( |
TuplePtr |
tp | ) |
|
probe one tuple
- Parameters
-
- Returns
- Number of matches
The documentation for this class was generated from the following file: