getTSDBDataStat#

swordfish.function.getTSDBDataStat()#

Get the number of level files and sort key entries of specified chunks on the current node.

Parameters:
  • dbName (Constant, optional) – A string indicating the database name. It can contain wildcards (“*”, “%”, and “?”). The default value is “*”.

  • tableName (Constant, optional) – A string indicating the table name. It can contain wildcards (“*”, “%”, and “?”). The default value is “*”.

  • chunkId (Constant, optional) – A STRING scalar or vector indicating chunk ID(s). If chunkId is specified, dbName and tableName must be empty or “*”.

  • 0 ("*" matches all; "?" matches a single character; "%" matches)

  • more (1 or)

  • characters.

Returns:

A table containing the following columns:

  • levelFileCount: the number of level files of tables for each chunk.

  • sortKeyEntryCount: the number of sort key entries that has not been deduplicated in all level files for each chunk.

Return type:

Constant