Aracılığıyla paylaş


KafkaTriggerConverter Sınıf

Devralma
KafkaTriggerConverter

Oluşturucu

KafkaTriggerConverter()

Yöntemler

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

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

get_parsed_props

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

Parametreler

Name Description
props
Gerekli
parsed_data
Gerekli

has_implicit_output

abstract classmethod has_implicit_output() -> bool