|
BitMagic-C++
|
Index for SV sorted vectors for approximate range queries. More...
#include <bmsparsevec_algo.h>
Public Types | |
| typedef SV::value_type | value_type |
| typedef SV::size_type | size_type |
| typedef SV::bvector_type | bvector_type |
| typedef bvector_type::allocator_type | allocator_type |
| typedef bm::dynamic_heap_matrix< value_type, allocator_type > | heap_matrix_type |
Public Member Functions | |
| sv_sample_index () | |
| sv_sample_index (const SV &sv, unsigned s_factor) | |
| void | construct (const SV &sv, unsigned s_factor) |
| Build sampling index for the sorted sprase vector. | |
| size_type | sv_size () const BMNOEXCEPT |
| Original SV size. | |
| size_type | size () const BMNOEXCEPT |
| Index size (number of sampled elements). | |
| bool | is_unique () const BMNOEXCEPT |
| returns true if all index values are unique | |
| bool | bfind_range (const value_type *search_str, size_t in_len, size_type &l, size_type &r) const BMNOEXCEPT |
| find range (binary) | |
| size_type | common_prefix_length (const value_type *search_str, size_t in_len, size_type l, size_type r) const BMNOEXCEPT |
| find common prefix between index elements and search string | |
| void | recalc_range (const value_type *search_str, size_type &l, size_type &r) const BMNOEXCEPT |
| recalculate range into SV coordinates range [from..to) | |
| size_t | get_min_len () const BMNOEXCEPT |
| Return length of minimal indexed string. | |
Index for SV sorted vectors for approximate range queries.
Definition at line 491 of file bmsparsevec_algo.h.
| typedef bvector_type::allocator_type bm::sv_sample_index< SV >::allocator_type |
Definition at line 497 of file bmsparsevec_algo.h.
| typedef SV::bvector_type bm::sv_sample_index< SV >::bvector_type |
Definition at line 496 of file bmsparsevec_algo.h.
| typedef bm::dynamic_heap_matrix<value_type, allocator_type> bm::sv_sample_index< SV >::heap_matrix_type |
Definition at line 498 of file bmsparsevec_algo.h.
| typedef SV::size_type bm::sv_sample_index< SV >::size_type |
Definition at line 495 of file bmsparsevec_algo.h.
| typedef SV::value_type bm::sv_sample_index< SV >::value_type |
Definition at line 494 of file bmsparsevec_algo.h.
|
inline |
Definition at line 500 of file bmsparsevec_algo.h.
|
inline |
Definition at line 501 of file bmsparsevec_algo.h.
References construct().
| bool bm::sv_sample_index< SV >::bfind_range | ( | const value_type * | search_str, |
| size_t | in_len, | ||
| size_type & | l, | ||
| size_type & | r ) const |
find range (binary)
Definition at line 3400 of file bmsparsevec_algo.h.
References BM_ASSERT, and BMNOEXCEPT.
| sv_sample_index< SV >::size_type bm::sv_sample_index< SV >::common_prefix_length | ( | const value_type * | search_str, |
| size_t | in_len, | ||
| size_type | l, | ||
| size_type | r ) const |
find common prefix between index elements and search string
Definition at line 3473 of file bmsparsevec_algo.h.
References BM_ASSERT, BMNOEXCEPT, and bm::has_zero_byte_u64().
| void bm::sv_sample_index< SV >::construct | ( | const SV & | sv, |
| unsigned | s_factor ) |
Build sampling index for the sorted sprase vector.
| sv | - string sparse vector to index |
| s_factor | - sampling factor |
Definition at line 3324 of file bmsparsevec_algo.h.
References BM_ASSERT, and bm::gap_max_bits.
Referenced by sv_sample_index().
|
inline |
Return length of minimal indexed string.
Definition at line 547 of file bmsparsevec_algo.h.
References BMNOEXCEPT.
|
inline |
returns true if all index values are unique
Definition at line 523 of file bmsparsevec_algo.h.
References BMNOEXCEPT.
| void bm::sv_sample_index< SV >::recalc_range | ( | const value_type * | search_str, |
| size_type & | l, | ||
| size_type & | r ) const |
recalculate range into SV coordinates range [from..to)
Definition at line 3518 of file bmsparsevec_algo.h.
References BM_ASSERT, BMNOEXCEPT, and bm::gap_max_bits.
|
inline |
Index size (number of sampled elements).
Definition at line 520 of file bmsparsevec_algo.h.
References BMNOEXCEPT.
|
inline |