minos.common.model.serializers.avro.data.decoder

Classes

AvroDataDecoder

Avro Data Decoder class.

class AvroDataDecoder[source]

Bases: DataDecoder

Avro Data Decoder class.

__init__(type_=None)[source]
Parameters

type_ (Optional[type]) –

build(data, type_=MissingSentinel, **kwargs)[source]

Cast data type according to the field definition.

Parameters
  • data (Any) – Data to be casted.

  • type – The type of the decoded data.

  • type_ (Any) –

Returns

The casted object.

Return type

Any