tlc.core.table_row_serializer_registry#

Maintains a list of currently registered TableRowSerializers.

Module Contents#

Classes#

Class

Description

TableRowSerializerRegistry

Maintains a list of currently registered TableRowSerializers.

API#

class tlc.core.table_row_serializer_registry.TableRowSerializerRegistry#

Bases: abc.ABC

Maintains a list of currently registered TableRowSerializers.

static register_table_row_serializer(table_row_serializer: tlc.core.table_row_serializer.TableRowSerializer) None#

Register a table row serializer in the global registry

static get_table_row_serializer(format_internal_name: str, default_value: Optional[tlc.core.table_row_serializer.TableRowSerializer] = None) Optional[tlc.core.table_row_serializer.TableRowSerializer]#

Get table row serializer adapter for the given format internal name

static serialize(table: Any, wanted_format_internal_name: str = 'parquet') bytes#

Serializes all rows within a table to a specific binary format

If no serializer can be resolved for the given format return the ‘default_value’ if given, else raise an exception.

static print_table_row_serializers(line_prefix: str = '') None#

Print all external data resolvers.