dht: Implement operator<< for decorated_key

This commit is contained in:
Tomasz Grabiec
2015-04-23 20:58:22 +02:00
parent 841a13da93
commit 71041eb0d6
2 changed files with 6 additions and 0 deletions

View File

@@ -158,6 +158,10 @@ std::ostream& operator<<(std::ostream& out, const token& t) {
return out;
}
std::ostream& operator<<(std::ostream& out, const decorated_key& dk) {
return out << "{key: " << dk._key << ", token:" << dk._token << "}";
}
// FIXME: get from global config
// FIXME: make it per-keyspace
murmur3_partitioner default_partitioner;

View File

@@ -170,6 +170,8 @@ bool operator!=(const decorated_key& lht, const decorated_key& rht);
std::ostream& operator<<(std::ostream& out, const token& t);
std::ostream& operator<<(std::ostream& out, const decorated_key& t);
i_partitioner& global_partitioner();
} // dht