minos.common.protocol.avro.databases
Classes
Encoder/Decoder class for values to be stored on the database with avro format. |
- class MinosAvroDatabaseProtocol[source]
Bases:
MinosAvroProtocol
Encoder/Decoder class for values to be stored on the database with avro format.
- classmethod encode(value, *args, **kwargs)[source]
Encoder in avro for database Values all the headers are converted in fields with double underscore name the body is a set fields coming from the data type.
- classmethod decode(data, *args, **kwargs)[source]
Decode the given bytes of data into a single dictionary or a sequence of dictionaries.
- classmethod decode_schema(data, *args, **kwargs)
Decode the given bytes of data into a single dictionary or a sequence of dictionaries.