KafkaTriggerConverter Klass

Arv
KafkaTriggerConverter

Konstruktor

KafkaTriggerConverter()

Metoder

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

Parametrar

Name Description
pytype
Obligatorisk

check_output_type_annotation

check_output_type_annotation(pytype) -> bool

Parametrar

Name Description
pytype
Obligatorisk

decode

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

Parametrar

Name Description
data
Obligatorisk

Keyword-Only parametrar

Name Description
trigger_metadata
Obligatorisk

decode_multiple_events

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

Parametrar

Name Description
data
Obligatorisk
trigger_metadata
Obligatorisk

decode_single_event

decode_single_event(data: Datum, trigger_metadata) -> KafkaEvent

Parametrar

Name Description
data
Obligatorisk
trigger_metadata
Obligatorisk

encode

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

Parametrar

Name Description
obj
Obligatorisk

Keyword-Only parametrar

Name Description
expected_type
Obligatorisk

get_parsed_props

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

Parametrar

Name Description
props
Obligatorisk
parsed_data
Obligatorisk

has_implicit_output

abstract classmethod has_implicit_output() -> bool