|
| template<typename InputIt1> |
| | BlockPatternMatchVector (InputIt1 first, InputIt1 last) |
| template<typename CharT> |
| void | insert (int64_t block, CharT key, int pos) |
| template<typename InputIt1> |
| void | insert (InputIt1 first, InputIt1 last) |
| template<typename CharT> |
| uint64_t | get (CharT key) const |
| template<typename CharT> |
| uint64_t | get (int64_t block, CharT key) const |
◆ BlockPatternMatchVector() [1/2]
| duckdb_jaro_winkler::common::BlockPatternMatchVector::BlockPatternMatchVector |
( |
| ) |
|
|
inline |
108380 : m_block_count(0)
108381 {}
◆ BlockPatternMatchVector() [2/2]
template<typename InputIt1>
| duckdb_jaro_winkler::common::BlockPatternMatchVector::BlockPatternMatchVector |
( |
InputIt1 | first, |
|
|
InputIt1 | last ) |
|
inline |
108384 : m_block_count(0)
108385 {
108386 insert(first, last);
108387 }
◆ insert() [1/2]
template<typename CharT>
| void duckdb_jaro_winkler::common::BlockPatternMatchVector::insert |
( |
int64_t | block, |
|
|
CharT | key, |
|
|
int | pos ) |
|
inline |
108391 {
108393
108394 assert(block < m_block_count);
108395 if (key >= 0 && key <= 255) {
108396 m_extendedAscii[static_cast<size_t>(key * m_block_count + block)] |= mask;
108397 }
108398 else {
108399 m_map[static_cast<size_t>(block)].insert_mask(key, mask);
108400 }
108401 }
#define assert(x)
Definition duckdb.cpp:486071
GMat mask(const GMat &src, const GMat &mask)
◆ insert() [2/2]
template<typename InputIt1>
| void duckdb_jaro_winkler::common::BlockPatternMatchVector::insert |
( |
InputIt1 | first, |
|
|
InputIt1 | last ) |
|
inline |
108405 {
108406 int64_t len = std::distance(first, last);
108407 m_block_count = ceildiv(len, 64);
108408 m_map.resize(static_cast<size_t>(m_block_count));
108409 m_extendedAscii.resize(static_cast<size_t>(m_block_count * 256));
108410
108411 for (int64_t i = 0; i < len; ++i) {
108414 insert(block, first[i], static_cast<int>(pos));
108415 }
108416 }
◆ get() [1/2]
template<typename CharT>
| uint64_t duckdb_jaro_winkler::common::BlockPatternMatchVector::get |
( |
CharT | key | ) |
const |
|
inline |
combat func for PatternMatchVector
108423 {
108424 return get(0, key);
108425 }
__host__ cudaTextureObject_t get() const noexcept
◆ get() [2/2]
template<typename CharT>
| uint64_t duckdb_jaro_winkler::common::BlockPatternMatchVector::get |
( |
int64_t | block, |
|
|
CharT | key ) const |
|
inline |
108429 {
108430 assert(block < m_block_count);
108431 if (key >= 0 && key <= 255) {
108432 return m_extendedAscii[static_cast<size_t>(key * m_block_count + block)];
108433 }
108434 else {
108435 return m_map[
static_cast<size_t>(block)].
get(key);
108436 }
108437 }
The documentation for this struct was generated from the following file: