KafkaConverter Класс

Наследование
KafkaConverter
KafkaConverter

Конструктор

KafkaConverter()

Методы

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

Параметры

Имя Описание
pytype
Обязательно

check_output_type_annotation

check_output_type_annotation(pytype) -> bool

Параметры

Имя Описание
pytype
Обязательно

decode

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

Параметры

Имя Описание
data
Обязательно

Параметры Keyword-Only

Имя Описание
trigger_metadata
Обязательно

decode_multiple_events

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

Параметры

Имя Описание
data
Обязательно
trigger_metadata
Обязательно

decode_single_event

decode_single_event(data: Datum, trigger_metadata) -> KafkaEvent

Параметры

Имя Описание
data
Обязательно
trigger_metadata
Обязательно

encode

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

Параметры

Имя Описание
obj
Обязательно

Параметры Keyword-Only

Имя Описание
expected_type
Обязательно

has_implicit_output

abstract classmethod has_implicit_output() -> bool