This commit is contained in:
@@ -42,7 +42,7 @@ Keyword Arguments:
|
||||
this partition metadata.
|
||||
"""
|
||||
PartitionMetadata = namedtuple("PartitionMetadata",
|
||||
["topic", "partition", "leader", "leader_epoch", "replicas", "isr", "offline_replicas", "error"])
|
||||
["topic", "partition", "leader", "replicas", "isr", "error"])
|
||||
|
||||
|
||||
"""The Kafka offset commit API
|
||||
@@ -55,10 +55,10 @@ what time the commit was made, etc.
|
||||
Keyword Arguments:
|
||||
offset (int): The offset to be committed
|
||||
metadata (str): Non-null metadata
|
||||
leader_epoch (int): The last known epoch from the leader / broker
|
||||
"""
|
||||
OffsetAndMetadata = namedtuple("OffsetAndMetadata",
|
||||
["offset", "metadata", "leader_epoch"])
|
||||
# TODO add leaderEpoch: OffsetAndMetadata(offset, leaderEpoch, metadata)
|
||||
["offset", "metadata"])
|
||||
|
||||
|
||||
"""An offset and timestamp tuple
|
||||
@@ -66,10 +66,9 @@ OffsetAndMetadata = namedtuple("OffsetAndMetadata",
|
||||
Keyword Arguments:
|
||||
offset (int): An offset
|
||||
timestamp (int): The timestamp associated to the offset
|
||||
leader_epoch (int): The last known epoch from the leader / broker
|
||||
"""
|
||||
OffsetAndTimestamp = namedtuple("OffsetAndTimestamp",
|
||||
["offset", "timestamp", "leader_epoch"])
|
||||
["offset", "timestamp"])
|
||||
|
||||
MemberInformation = namedtuple("MemberInformation",
|
||||
["member_id", "client_id", "client_host", "member_metadata", "member_assignment"])
|
||||
|
||||
Reference in New Issue
Block a user