Sdílet prostřednictvím


EventHubConverter Třída

Dědičnost
EventHubConverter
EventHubConverter

Konstruktor

EventHubConverter()

Metody

check_input_type_annotation
check_output_type_annotation
decode
decode_multiple_events
decode_single_event
encode
has_implicit_output

check_input_type_annotation

check_input_type_annotation(pytype: type) -> bool

Parametry

Name Description
pytype
Vyžadováno

check_output_type_annotation

check_output_type_annotation(pytype: type) -> bool

Parametry

Name Description
pytype
Vyžadováno

decode

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

Parametry

Name Description
data
Vyžadováno

Výhradně parametry klíčových slov

Name Description
trigger_metadata
Vyžadováno

decode_multiple_events

decode_multiple_events(data, trigger_metadata) -> List[EventHubEvent]

Parametry

Name Description
data
Vyžadováno
trigger_metadata
Vyžadováno

decode_single_event

decode_single_event(data, trigger_metadata) -> EventHubEvent

Parametry

Name Description
data
Vyžadováno
trigger_metadata
Vyžadováno

encode

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

Parametry

Name Description
obj
Vyžadováno

Výhradně parametry klíčových slov

Name Description
expected_type
Vyžadováno

has_implicit_output

abstract classmethod has_implicit_output() -> bool