minos.common.model.serializers.avro.data.encoder

Classes

AvroDataEncoder

Avro Data Encoder class.

class AvroDataEncoder[source]

Bases: DataEncoder

Avro Data Encoder class.

__init__(value=None)[source]
Parameters

value (Optional[Any]) –

build(value=MissingSentinel, **kwargs)[source]

Build an avro data representation based on the content of the given field.

Parameters

value – The value to be encoded.

Returns

A avro-compatible data.

Return type

Any