-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from jubatus/remove-regexp-dependency
Users can remove regexp dependency at compile time
- Loading branch information
Showing
12 changed files
with
187 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// Jubatus: Online machine learning framework for distributed environment | ||
// Copyright (C) 2014 Preferred Infrastructure and Nippon Telegraph and Telephone Corporation. | ||
// | ||
// This library is free software; you can redistribute it and/or | ||
// modify it under the terms of the GNU Lesser General Public | ||
// License version 2.1 as published by the Free Software Foundation. | ||
// | ||
// This library is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
// Lesser General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU Lesser General Public | ||
// License along with this library; if not, write to the Free Software | ||
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
|
||
#ifndef JUBATUS_CORE_FV_CONVERTER_NULL_REGEXP_FILTER_HPP_ | ||
#define JUBATUS_CORE_FV_CONVERTER_NULL_REGEXP_FILTER_HPP_ | ||
|
||
#include "string_filter.hpp" | ||
#include "exception.hpp" | ||
|
||
namespace jubatus { | ||
namespace core { | ||
namespace fv_converter { | ||
|
||
class regexp_filter : public string_filter { | ||
public: | ||
regexp_filter(const std::string& regexp, const std::string& replace) { | ||
throw JUBATUS_EXCEPTION( | ||
converter_exception("regexp support is disabled")); | ||
} | ||
|
||
void filter(const std::string& input, std::string& output) const {} | ||
}; | ||
|
||
} // namespace fv_converter | ||
} // namespace core | ||
} // namespace jubatus | ||
|
||
#endif // JUBATUS_CORE_FV_CONVERTER_NULL_REGEXP_FILTER_HPP_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// Jubatus: Online machine learning framework for distributed environment | ||
// Copyright (C) 2011 Preferred Infrastructure and Nippon Telegraph and Telephone Corporation. | ||
// | ||
// This library is free software; you can redistribute it and/or | ||
// modify it under the terms of the GNU Lesser General Public | ||
// License version 2.1 as published by the Free Software Foundation. | ||
// | ||
// This library is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
// Lesser General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU Lesser General Public | ||
// License along with this library; if not, write to the Free Software | ||
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
|
||
#ifndef JUBATUS_CORE_FV_CONVERTER_NULL_REGEXP_MATCH_HPP_ | ||
#define JUBATUS_CORE_FV_CONVERTER_NULL_REGEXP_MATCH_HPP_ | ||
|
||
#include "key_matcher.hpp" | ||
#include "exception.hpp" | ||
|
||
namespace jubatus { | ||
namespace core { | ||
namespace fv_converter { | ||
|
||
class regexp_match : public key_matcher { | ||
public: | ||
explicit regexp_match(const std::string& regexp) { | ||
throw JUBATUS_EXCEPTION( | ||
converter_exception("regexp support is disabled")); | ||
} | ||
|
||
bool match(const std::string& key) { | ||
return false; | ||
} | ||
}; | ||
|
||
} // namespace fv_converter | ||
} // namespace core | ||
} // namespace jubatus | ||
|
||
#endif // JUBATUS_CORE_FV_CONVERTER_NULL_REGEXP_MATCH_HPP_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// Jubatus: Online machine learning framework for distributed environment | ||
// Copyright (C) 2012 Preferred Infrastructure and Nippon Telegraph and Telephone Corporation. | ||
// | ||
// This library is free software; you can redistribute it and/or | ||
// modify it under the terms of the GNU Lesser General Public | ||
// License version 2.1 as published by the Free Software Foundation. | ||
// | ||
// This library is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
// Lesser General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU Lesser General Public | ||
// License along with this library; if not, write to the Free Software | ||
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
|
||
#ifndef JUBATUS_CORE_FV_CONVERTER_NULL_REGEXP_SPLITTER_HPP_ | ||
#define JUBATUS_CORE_FV_CONVERTER_NULL_REGEXP_SPLITTER_HPP_ | ||
|
||
#include "word_splitter.hpp" | ||
#include "exception.hpp" | ||
|
||
namespace jubatus { | ||
namespace core { | ||
namespace fv_converter { | ||
|
||
class regexp_splitter : public word_splitter { | ||
public: | ||
regexp_splitter(const std::string& regexp, int group) { | ||
throw JUBATUS_EXCEPTION( | ||
converter_exception("regexp support is disabled")); | ||
} | ||
|
||
void split( | ||
const std::string& str, | ||
std::vector<std::pair<size_t, size_t> >& bounds) const {}; | ||
}; | ||
|
||
} // namespace fv_converter | ||
} // namespace core | ||
} // namespace jubatus | ||
|
||
#endif // JUBATUS_CORE_FV_CONVERTER_NULL_REGEXP_SPLITTER_HPP_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters