jubatus_core  0.1.2
Jubatus: Online machine learning framework for distributed environment
Static Public Member Functions | List of all members
jubatus::core::storage::storage_factory Class Reference

#include <storage_factory.hpp>

Collaboration diagram for jubatus::core::storage::storage_factory:
Collaboration graph

Static Public Member Functions

static jubatus::util::lang::shared_ptr< storage_basecreate_storage (const std::string &name)
 

Detailed Description

Definition at line 29 of file storage_factory.hpp.

Member Function Documentation

shared_ptr< storage_base > jubatus::core::storage::storage_factory::create_storage ( const std::string &  name)
static

Definition at line 32 of file storage_factory.cpp.

References JUBATUS_EXCEPTION.

33  {
34  if (name == "local") {
35  return shared_ptr<storage_base>(new local_storage);
36  } else if (name == "local_mixture") {
37  return shared_ptr<storage_base>(new local_storage_mixture);
38  }
39 
40  // maybe bug or configuration mistake
41  throw JUBATUS_EXCEPTION(
43  std::string("failed to create storage: ") + name));
44 }
#define JUBATUS_EXCEPTION(e)
Definition: exception.hpp:79

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