Module cartridge.lua-api.compression¶
Compression API.
Functions¶
get_cluster_compression_info ()¶
This function gets compression info on cluster aggregated by instances. Function surfs by replicates to find master storages and calls on them __cartridgeGetStorageCompressionInfo() func.
Returns:
(table) {{instance_id, instance_compression_info},…}
Or
(nil)
(table) Error description
__cartridgeGetStorageCompressionInfo ()¶
This function finds all user spaces with correct schema and index and calculates compression for their fields.
Returns:
(table) {{space_name, fields_be_compressed},…}
Or
(nil)
(table) Error description
Local Functions¶
create_tmp_space (space_name, space_type, orig_index, orig_format, field_format)¶
This function creates temporary space.
Parameters:
space_name: (string)
space_type: (string)
orig_index: (table)
orig_format: (string)
field_format: (string)
Returns:
(table)