jubatus_core  0.1.2
Jubatus: Online machine learning framework for distributed environment
Classes | Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
jubatus::core::burst::burst Class Reference

#include <burst.hpp>

Collaboration diagram for jubatus::core::burst::burst:
Collaboration graph

Classes

class  diff_t
 
class  impl_
 

Public Types

typedef std::vector< keyword_with_paramskeyword_list
 
typedef jubatus::util::data::unordered_map< std::string, result_tresult_map
 
typedef burst_result result_t
 

Public Member Functions

bool add_document (const std::string &str, double pos)
 
bool add_keyword (const std::string &keyword, const keyword_params &params, bool processed_in_this_server)
 
 burst (const burst_options &options)
 
void calculate_results ()
 
void clear ()
 
result_map get_all_bursted_results () const
 
result_map get_all_bursted_results_at (double pos) const
 
keyword_list get_all_keywords () const
 
void get_diff (diff_t &ret) const
 
keyword_list get_processed_keywords () const
 
result_t get_result (const std::string &keyword) const
 
result_t get_result_at (const std::string &keyword, double pos) const
 
storage::version get_version () const
 
bool has_been_mixed () const
 
void pack (framework::packer &packer) const
 
bool put_diff (const diff_t &)
 
bool remove_all_keywords ()
 
bool remove_keyword (const std::string &keyword)
 
void set_processed_keywords (const std::vector< std::string > &keywords)
 
void unpack (msgpack::object o)
 
 ~burst ()
 

Static Public Member Functions

static void mix (const diff_t &lhs, diff_t &ret)
 

Private Attributes

jubatus::util::lang::scoped_ptr< impl_p_
 

Detailed Description

Definition at line 70 of file burst.hpp.

Member Typedef Documentation

Definition at line 74 of file burst.hpp.

typedef jubatus::util::data::unordered_map<std::string, result_t> jubatus::core::burst::burst::result_map

Definition at line 73 of file burst.hpp.

Definition at line 72 of file burst.hpp.

Constructor & Destructor Documentation

jubatus::core::burst::burst::burst ( const burst_options options)
explicit

Definition at line 515 of file burst.cpp.

516  : p_(new impl_(options)) {
517 }
jubatus::util::lang::scoped_ptr< impl_ > p_
Definition: burst.hpp:124
jubatus::core::burst::burst::~burst ( )

Definition at line 519 of file burst.cpp.

519  {
520 }

Member Function Documentation

bool jubatus::core::burst::burst::add_document ( const std::string &  str,
double  pos 
)
bool jubatus::core::burst::burst::add_keyword ( const std::string &  keyword,
const keyword_params params,
bool  processed_in_this_server 
)
void jubatus::core::burst::burst::calculate_results ( )

Definition at line 554 of file burst.cpp.

References JUBATUS_ASSERT, and p_.

554  {
556  p_->calculate_results();
557 }
jubatus::util::lang::scoped_ptr< impl_ > p_
Definition: burst.hpp:124
#define JUBATUS_ASSERT(expr)
Definition: assert.hpp:55
void jubatus::core::burst::burst::clear ( )

Definition at line 614 of file burst.cpp.

References JUBATUS_ASSERT, and p_.

614  {
616  p_->clear();
617 }
jubatus::util::lang::scoped_ptr< impl_ > p_
Definition: burst.hpp:124
#define JUBATUS_ASSERT(expr)
Definition: assert.hpp:55
burst::result_map jubatus::core::burst::burst::get_all_bursted_results ( ) const

Definition at line 568 of file burst.cpp.

References JUBATUS_ASSERT, and p_.

568  {
570  return p_->get_all_bursted_results();
571 }
jubatus::util::lang::scoped_ptr< impl_ > p_
Definition: burst.hpp:124
#define JUBATUS_ASSERT(expr)
Definition: assert.hpp:55
burst::result_map jubatus::core::burst::burst::get_all_bursted_results_at ( double  pos) const

Definition at line 572 of file burst.cpp.

References JUBATUS_ASSERT, and p_.

572  {
574  return p_->get_all_bursted_results_at(pos);
575 }
jubatus::util::lang::scoped_ptr< impl_ > p_
Definition: burst.hpp:124
#define JUBATUS_ASSERT(expr)
Definition: assert.hpp:55
burst::keyword_list jubatus::core::burst::burst::get_all_keywords ( ) const

Definition at line 539 of file burst.cpp.

References JUBATUS_ASSERT, and p_.

539  {
541  return p_->get_all_keywords();
542 }
jubatus::util::lang::scoped_ptr< impl_ > p_
Definition: burst.hpp:124
#define JUBATUS_ASSERT(expr)
Definition: assert.hpp:55
void jubatus::core::burst::burst::get_diff ( diff_t ret) const

Definition at line 601 of file burst.cpp.

References JUBATUS_ASSERT, and p_.

601  {
603  p_->get_diff(ret);
604 }
jubatus::util::lang::scoped_ptr< impl_ > p_
Definition: burst.hpp:124
#define JUBATUS_ASSERT(expr)
Definition: assert.hpp:55
burst::keyword_list jubatus::core::burst::burst::get_processed_keywords ( ) const

Definition at line 544 of file burst.cpp.

References JUBATUS_ASSERT, and p_.

544  {
546  return p_->get_processed_keywords();
547 }
jubatus::util::lang::scoped_ptr< impl_ > p_
Definition: burst.hpp:124
#define JUBATUS_ASSERT(expr)
Definition: assert.hpp:55
burst::result_t jubatus::core::burst::burst::get_result ( const std::string &  keyword) const

Definition at line 559 of file burst.cpp.

References JUBATUS_ASSERT, and p_.

559  {
561  return p_->get_result(keyword);
562 }
jubatus::util::lang::scoped_ptr< impl_ > p_
Definition: burst.hpp:124
#define JUBATUS_ASSERT(expr)
Definition: assert.hpp:55
burst::result_t jubatus::core::burst::burst::get_result_at ( const std::string &  keyword,
double  pos 
) const

Definition at line 563 of file burst.cpp.

References JUBATUS_ASSERT, and p_.

564  {
566  return p_->get_result_at(keyword, pos);
567 }
jubatus::util::lang::scoped_ptr< impl_ > p_
Definition: burst.hpp:124
#define JUBATUS_ASSERT(expr)
Definition: assert.hpp:55
storage::version jubatus::core::burst::burst::get_version ( ) const

Definition at line 618 of file burst.cpp.

References JUBATUS_ASSERT, and p_.

618  {
620  return p_->get_version();
621 }
jubatus::util::lang::scoped_ptr< impl_ > p_
Definition: burst.hpp:124
#define JUBATUS_ASSERT(expr)
Definition: assert.hpp:55
bool jubatus::core::burst::burst::has_been_mixed ( ) const

Definition at line 609 of file burst.cpp.

References JUBATUS_ASSERT, and p_.

609  {
611  return p_->has_been_mixed();
612 }
jubatus::util::lang::scoped_ptr< impl_ > p_
Definition: burst.hpp:124
#define JUBATUS_ASSERT(expr)
Definition: assert.hpp:55
static void jubatus::core::burst::burst::mix ( const diff_t lhs,
diff_t ret 
)
inlinestatic

Definition at line 110 of file burst.hpp.

References jubatus::core::burst::burst::diff_t::mix().

110  {
111  ret.mix(lhs);
112  }

Here is the call graph for this function:

void jubatus::core::burst::burst::pack ( framework::packer packer) const

Definition at line 622 of file burst.cpp.

References JUBATUS_ASSERT, and p_.

622  {
624  p_->pack(packer);
625 }
jubatus::util::lang::scoped_ptr< impl_ > p_
Definition: burst.hpp:124
#define JUBATUS_ASSERT(expr)
Definition: assert.hpp:55
msgpack::packer< jubatus_packer > packer
Definition: bandit_base.hpp:31
bool jubatus::core::burst::burst::put_diff ( const diff_t diff)

Definition at line 605 of file burst.cpp.

References JUBATUS_ASSERT, and p_.

605  {
607  return p_->put_diff(diff);
608 }
jubatus::util::lang::scoped_ptr< impl_ > p_
Definition: burst.hpp:124
#define JUBATUS_ASSERT(expr)
Definition: assert.hpp:55
bool jubatus::core::burst::burst::remove_all_keywords ( )

Definition at line 534 of file burst.cpp.

References JUBATUS_ASSERT, and p_.

534  {
536  return p_->remove_all_keywords();
537 }
jubatus::util::lang::scoped_ptr< impl_ > p_
Definition: burst.hpp:124
#define JUBATUS_ASSERT(expr)
Definition: assert.hpp:55
bool jubatus::core::burst::burst::remove_keyword ( const std::string &  keyword)
void jubatus::core::burst::burst::set_processed_keywords ( const std::vector< std::string > &  keywords)
void jubatus::core::burst::burst::unpack ( msgpack::object  o)

Definition at line 626 of file burst.cpp.

References JUBATUS_ASSERT, and p_.

626  {
628  p_->unpack(o);
629 }
jubatus::util::lang::scoped_ptr< impl_ > p_
Definition: burst.hpp:124
#define JUBATUS_ASSERT(expr)
Definition: assert.hpp:55

Member Data Documentation

jubatus::util::lang::scoped_ptr<impl_> jubatus::core::burst::burst::p_
private

The documentation for this class was generated from the following files: