17 #ifndef JUBATUS_CORE_NEAREST_NEIGHBOR_MINHASH_HPP_
18 #define JUBATUS_CORE_NEAREST_NEIGHBOR_MINHASH_HPP_
24 #include "jubatus/util/data/serialization.h"
25 #include "jubatus/util/lang/shared_ptr.h"
27 #include "../common/type.hpp"
33 template <
typename bit_base>
class bit_vector_base;
36 namespace nearest_neighbor {
47 template <
typename Ar>
49 ar & JUBA_MEMBER(hash_num);
55 jubatus::util::lang::shared_ptr<storage::column_table> table,
56 const std::string&
id);
59 jubatus::util::lang::shared_ptr<storage::column_table> table,
60 std::vector<storage::column_type>& schema,
61 const std::string&
id);
63 virtual std::string
type()
const {
75 #endif // JUBATUS_CORE_NEAREST_NEIGHBOR_MINHASH_HPP_
minhash(const config &conf, jubatus::util::lang::shared_ptr< storage::column_table > table, const std::string &id)
bit_vector_base< uint64_t > bit_vector
virtual std::string type() const
virtual storage::bit_vector hash(const common::sfv_t &sfv) const
std::vector< std::pair< std::string, float > > sfv_t