KafkaTriggerConverter Třída

Dědičnost
KafkaTriggerConverter

Konstruktor

KafkaTriggerConverter()

Metody

check_input_type_annotation
check_output_type_annotation
decode
decode_multiple_events
decode_single_event
encode
get_parsed_props
has_implicit_output

check_input_type_annotation

check_input_type_annotation(pytype) -> bool

Parametry

Name Description
pytype
Vyžadováno

check_output_type_annotation

check_output_type_annotation(pytype) -> bool

Parametry

Name Description
pytype
Vyžadováno

decode

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

Parametry

Name Description
data
Vyžadováno

Výhradně parametry klíčových slov

Name Description
trigger_metadata
Vyžadováno

decode_multiple_events

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

Parametry

Name Description
data
Vyžadováno
trigger_metadata
Vyžadováno

decode_single_event

decode_single_event(data: Datum, trigger_metadata) -> KafkaEvent

Parametry

Name Description
data
Vyžadováno
trigger_metadata
Vyžadováno

encode

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

Parametry

Name Description
obj
Vyžadováno

Výhradně parametry klíčových slov

Name Description
expected_type
Vyžadováno

get_parsed_props

get_parsed_props(props: Datum, parsed_data) -> List[Any]

Parametry

Name Description
props
Vyžadováno
parsed_data
Vyžadováno

has_implicit_output

abstract classmethod has_implicit_output() -> bool