Deserializers

Deserializer

class acouchbase_columnar.deserializer.Deserializer

Abstract base class for deserializers.

abstract deserialize(value: bytes)
Return type:

Any

DefaultJsonDeserializer

class acouchbase_columnar.deserializer.DefaultJsonDeserializer

Deserializer using the default Python json library.

deserialize(value: bytes)

Decodes the received bytes into a utf-8 string and deserializes using Python’s json library.

Parameters:

value (bytes) – The bytes to deserialize.

Return type:

Any

Returns:

The deserialized Python object.

PassthroughDeserializer

class acouchbase_columnar.deserializer.PassthroughDeserializer

Deserializer used in order to skip deserializing rows and simply pass the bytes along.

deserialize(value: bytes)

Needed to abide by the Deserializer abstract class. No deserializing is done.

Parameters:

value (bytes) – The bytes to passthrough.

Return type:

bytes

Returns:

The received bytes.