Aracılığıyla paylaş


KafkaConverter Sınıf

Devralma
KafkaConverter
KafkaConverter

Oluşturucu

KafkaConverter()

Yöntemler

check_input_type_annotation
check_output_type_annotation
decode
decode_multiple_events
decode_single_event
encode
has_implicit_output

check_input_type_annotation

check_input_type_annotation(pytype) -> bool

Parametreler

Name Description
pytype
Gerekli

check_output_type_annotation

check_output_type_annotation(pytype) -> bool

Parametreler

Name Description
pytype
Gerekli

decode

decode(data: Datum, *, trigger_metadata) -> KafkaEvent | List[KafkaEvent]

Parametreler

Name Description
data
Gerekli

Yalnızca Anahtar Sözcük Parametreleri

Name Description
trigger_metadata
Gerekli

decode_multiple_events

decode_multiple_events(data: Datum, trigger_metadata) -> List[KafkaEvent]

Parametreler

Name Description
data
Gerekli
trigger_metadata
Gerekli

decode_single_event

decode_single_event(data: Datum, trigger_metadata) -> KafkaEvent

Parametreler

Name Description
data
Gerekli
trigger_metadata
Gerekli

encode

encode(obj: Any, *, expected_type: type | None) -> Datum

Parametreler

Name Description
obj
Gerekli

Yalnızca Anahtar Sözcük Parametreleri

Name Description
expected_type
Gerekli

has_implicit_output

abstract classmethod has_implicit_output() -> bool