17 #ifndef JUBATUS_CORE_NEAREST_NEIGHBOR_LSH_HPP_
18 #define JUBATUS_CORE_NEAREST_NEIGHBOR_LSH_HPP_
23 #include "jubatus/util/data/serialization.h"
24 #include "jubatus/util/lang/shared_ptr.h"
32 namespace nearest_neighbor {
42 template <
typename Ar>
44 ar & JUBA_MEMBER(hash_num);
47 lsh(
const config& conf,
48 jubatus::util::lang::shared_ptr<storage::column_table> table,
49 const std::string&
id);
50 lsh(
const config& conf,
51 jubatus::util::lang::shared_ptr<storage::column_table> table,
52 std::vector<storage::column_type>& schema,
53 const std::string&
id);
55 virtual std::string
type()
const {
return "lsh"; }
65 #endif // JUBATUS_CORE_NEAREST_NEIGHBOR_LSH_HPP_
virtual std::string type() const
virtual storage::bit_vector hash(const common::sfv_t &sfv) const
lsh(const config &conf, jubatus::util::lang::shared_ptr< storage::column_table > table, const std::string &id)
std::vector< std::pair< std::string, float > > sfv_t