mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
synced 2025-11-20 19:54:51 +00:00
Allow getting consumer group information
This commit is contained in:
@@ -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() << "]";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user