25 using jubatus::util::lang::shared_ptr;
29 namespace fv_converter {
33 shared_ptr<regexp_filter> create_regexp_filter(
35 const std::string& pattern =
get_or_die(params,
"pattern");
36 const std::string& replace =
get_or_die(params,
"replace");
37 return shared_ptr<regexp_filter>(
new regexp_filter(pattern, replace));
43 const std::string& name,
46 if (name ==
"regexp") {
47 return create_regexp_filter(params);
48 }
else if (
ext_ && (p =
ext_(name, params))) {
49 return shared_ptr<string_filter>(p);
std::map< std::string, std::string > param_t
#define JUBATUS_EXCEPTION(e)
const std::string & get_or_die(const std::map< std::string, std::string > ¶ms, const std::string &key)
jubatus::util::lang::shared_ptr< string_filter > create(const std::string &name, const param_t ¶ms) const