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

매개 변수

Name Description
pytype
필수

check_output_type_annotation

check_output_type_annotation(pytype) -> bool

매개 변수

Name Description
pytype
필수

decode

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

매개 변수

Name Description
data
필수

키워드 전용 매개 변수

Name Description
trigger_metadata
필수

decode_multiple_events

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

매개 변수

Name Description
data
필수
trigger_metadata
필수

decode_single_event

decode_single_event(data: Datum, trigger_metadata) -> KafkaEvent

매개 변수

Name Description
data
필수
trigger_metadata
필수

encode

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

매개 변수

Name Description
obj
필수

키워드 전용 매개 변수

Name Description
expected_type
필수

get_parsed_props

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

매개 변수

Name Description
props
필수
parsed_data
필수

has_implicit_output

abstract classmethod has_implicit_output() -> bool