KafkaTriggerConverter クラス

継承
KafkaTriggerConverter

コンストラクター

KafkaTriggerConverter()

メソッド

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

パラメーター

名前 説明
pytype
必須

check_output_type_annotation

check_output_type_annotation(pytype) -> bool

パラメーター

名前 説明
pytype
必須

decode

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

パラメーター

名前 説明
data
必須

キーワードのみのパラメーター

名前 説明
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
必須

キーワードのみのパラメーター

名前 説明
expected_type
必須

get_parsed_props

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

パラメーター

名前 説明
props
必須
parsed_data
必須

has_implicit_output

abstract classmethod has_implicit_output() -> bool