KafkaTriggerConverter Class

Inheritance
KafkaTriggerConverter

Constructor

KafkaTriggerConverter()

Methods

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

Parameters

Name Description
pytype
Required

check_output_type_annotation

check_output_type_annotation(pytype) -> bool

Parameters

Name Description
pytype
Required

decode

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

Parameters

Name Description
data
Required

Keyword-Only Parameters

Name Description
trigger_metadata
Required

decode_multiple_events

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

Parameters

Name Description
data
Required
trigger_metadata
Required

decode_single_event

decode_single_event(data: Datum, trigger_metadata) -> KafkaEvent

Parameters

Name Description
data
Required
trigger_metadata
Required

encode

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

Parameters

Name Description
obj
Required

Keyword-Only Parameters

Name Description
expected_type
Required

get_parsed_props

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

Parameters

Name Description
props
Required
parsed_data
Required

has_implicit_output

abstract classmethod has_implicit_output() -> bool