swh.counters.kafka_client module#
- class swh.counters.kafka_client.KeyOrientedJournalClient(brokers: str | List[str], group_id: str, prefix: str | None = None, object_types: List[str] | None = None, privileged: bool = False, stop_after_objects: int | None = None, batch_size: int = 200, process_timeout: float | None = None, auto_offset_reset: str = 'earliest', stop_on_eof: bool | None = None, on_eof: EofBehavior | str | None = None, value_deserializer: Callable[[str, bytes], Any] | None = None, create_topics: bool = False, **kwargs)[source]#
Bases:
JournalClient
Journal Client implementation which only decodes the message keys. This does not need to bother with the message deserialization (contrary to
swh.journal.client.JournalClient
) Message values are still passed unparsed toworker_fn
so it can deserialize and use it if needed.