tlc.core.table_row_serializers.parquet_table_row_serializer#

Serialize a Table to Parquet format

Module Contents#

Classes#

Class

Description

ParquetTableRowSerializer

An object which can pull rows from a table and serialize them to Parquet format

API#

class tlc.core.table_row_serializers.parquet_table_row_serializer.ParquetTableRowSerializer(internal_name: str)#

Bases: tlc.core.table_row_serializer.TableRowSerializer

An object which can pull rows from a table and serialize them to Parquet format

internal_serialize(table: tlc.core.objects.table.Table) bytes#

Serializes all rows/columns of a table and writes the serialized contents to a cache file or folder.

Will write the serialized contents to table.row_cache_url.

If table.row_cache_populated is True, this method simply reads the cache and returns the contents.

If table.row_cache_populated is False, this method will populate the cache and then read the cache and return the contents.

Args: table (Table): The table to serialize

Returns: bytes: The serialized contents