ConsumerRecord
aiokafka.structs.ConsumerRecord dataclass #
ConsumerRecord(
topic: str,
partition: int,
offset: int,
timestamp: int,
timestamp_type: int,
key: Optional[KT],
value: Optional[VT],
checksum: Optional[int],
serialized_key_size: int,
serialized_value_size: int,
headers: Sequence[tuple[str, bytes]],
)
Bases: Generic[KT, VT]
offset instance-attribute #
offset: int
The position of this record in the corresponding Kafka partition.
serialized_key_size instance-attribute #
serialized_key_size: int
The size of the serialized, uncompressed key in bytes.