jubatus_core
0.1.2
Jubatus: Online machine learning framework for distributed environment
|
#include <bit_index_storage.hpp>
Public Member Functions | |
bit_index_storage () | |
void | clear () |
void | get_all_row_ids (std::vector< std::string > &ids) const |
void | get_diff (bit_table_t &diff) const |
void | get_row (const std::string &row, bit_vector &bv) const |
storage::version | get_version () const |
void | mix (const bit_table_t &lhs, bit_table_t &rhs) const |
MSGPACK_DEFINE (bitvals_, bitvals_diff_) | |
std::string | name () const |
void | pack (framework::packer &packer) const |
bool | put_diff (const bit_table_t &mixed_diff) |
void | remove_row (const std::string &row) |
void | set_row (const std::string &row, const bit_vector &bv) |
void | similar_row (const bit_vector &bv, std::vector< std::pair< std::string, float > > &ids, uint64_t ret_num) const |
void | unpack (msgpack::object o) |
~bit_index_storage () | |
Public Member Functions inherited from jubatus::core::framework::model | |
virtual | ~model () |
Private Attributes | |
bit_table_t | bitvals_ |
bit_table_t | bitvals_diff_ |
Definition at line 35 of file bit_index_storage.hpp.
jubatus::core::storage::bit_index_storage::bit_index_storage | ( | ) |
Definition at line 38 of file bit_index_storage.cpp.
jubatus::core::storage::bit_index_storage::~bit_index_storage | ( | ) |
Definition at line 41 of file bit_index_storage.cpp.
|
virtual |
Reimplemented from jubatus::core::framework::model.
Definition at line 78 of file bit_index_storage.cpp.
References bitvals_, and bitvals_diff_.
void jubatus::core::storage::bit_index_storage::get_all_row_ids | ( | std::vector< std::string > & | ids | ) | const |
Definition at line 83 of file bit_index_storage.cpp.
References bitvals_, and bitvals_diff_.
void jubatus::core::storage::bit_index_storage::get_diff | ( | bit_table_t & | diff | ) | const |
Definition at line 97 of file bit_index_storage.cpp.
References bitvals_diff_.
void jubatus::core::storage::bit_index_storage::get_row | ( | const std::string & | row, |
bit_vector & | bv | ||
) | const |
Definition at line 48 of file bit_index_storage.cpp.
References bitvals_, and bitvals_diff_.
|
inline |
Definition at line 51 of file bit_index_storage.hpp.
void jubatus::core::storage::bit_index_storage::mix | ( | const bit_table_t & | lhs, |
bit_table_t & | rhs | ||
) | const |
Definition at line 115 of file bit_index_storage.cpp.
jubatus::core::storage::bit_index_storage::MSGPACK_DEFINE | ( | bitvals_ | , |
bitvals_diff_ | |||
) |
string jubatus::core::storage::bit_index_storage::name | ( | ) | const |
Definition at line 172 of file bit_index_storage.cpp.
|
virtual |
Implements jubatus::core::framework::model.
Definition at line 164 of file bit_index_storage.cpp.
bool jubatus::core::storage::bit_index_storage::put_diff | ( | const bit_table_t & | mixed_diff | ) |
Definition at line 101 of file bit_index_storage.cpp.
References bitvals_, and bitvals_diff_.
void jubatus::core::storage::bit_index_storage::remove_row | ( | const std::string & | row | ) |
Definition at line 66 of file bit_index_storage.cpp.
References bitvals_, and bitvals_diff_.
void jubatus::core::storage::bit_index_storage::set_row | ( | const std::string & | row, |
const bit_vector & | bv | ||
) |
Definition at line 44 of file bit_index_storage.cpp.
References bitvals_diff_.
void jubatus::core::storage::bit_index_storage::similar_row | ( | const bit_vector & | bv, |
std::vector< std::pair< std::string, float > > & | ids, | ||
uint64_t | ret_num | ||
) | const |
Definition at line 132 of file bit_index_storage.cpp.
References jubatus::core::storage::bit_vector_base< bit_base >::bit_num(), bitvals_, bitvals_diff_, jubatus::core::storage::fixed_size_heap< T, Comp >::get_sorted(), and jubatus::core::storage::similar_row_one().
|
virtual |
Implements jubatus::core::framework::model.
Definition at line 168 of file bit_index_storage.cpp.
|
private |
Definition at line 65 of file bit_index_storage.hpp.
Referenced by clear(), get_all_row_ids(), get_row(), put_diff(), remove_row(), and similar_row().
|
private |
Definition at line 66 of file bit_index_storage.hpp.
Referenced by clear(), get_all_row_ids(), get_diff(), get_row(), put_diff(), remove_row(), set_row(), and similar_row().