The multithread-supported hash table, holding buckets.
More...
The multithread-supported hash table, holding buckets.
- Todo:
- Improve the efficiency of build phase
◆ MultiThreadHashTable()
| MultiThreadHashTable::MultiThreadHashTable |
( |
size_t |
bks | ) |
|
pre-init with several buckets
- Parameters
-
◆ buildTable()
| void MultiThreadHashTable::buildTable |
( |
NPJTuplePtr * |
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
◆ probeTuple()
| size_t MultiThreadHashTable::probeTuple |
( |
NPJTuplePtr |
tp | ) |
|
probe one tuple
- Parameters
-
- Returns
- Number of matches
The documentation for this class was generated from the following files: