Allow getting consumer group information

This commit is contained in:
Matias Fontanini
2017-04-16 19:45:03 -07:00
parent ebde747e18
commit dbb547889b
15 changed files with 544 additions and 116 deletions

View File

@@ -83,6 +83,14 @@ bool TopicPartition::operator<(const TopicPartition& rhs) const {
return tie(topic_, partition_) < tie(rhs.topic_, rhs.partition_);
}
bool TopicPartition::operator==(const TopicPartition& rhs) const {
return tie(topic_, partition_) == tie(rhs.topic_, rhs.partition_);
}
bool TopicPartition::operator!=(const TopicPartition& rhs) const {
return !(*this == rhs);
}
ostream& operator<<(ostream& output, const TopicPartition& rhs) {
return output << rhs.get_topic() << "[" << rhs.get_partition() << "]";
}