getTabletsMeta#
- swordfish.function.getTabletsMeta()#
Return metadata of specified tablet chunks on the local node.
- Parameters:
chunkPath (Constant, optional) – The DFS path to one or multiple database chunks. It supports wildcards %, * and ?.
tableName (Constant, optional) – A string indicating a table name.
diskUsage (Constant, optional) – A Boolean value indicating whether the result includes the column of diskUsage.
top (Constant, optional) – A positive number indicating the maximum number of chunks in the output. The default value is 1024. To remove the upper limit of chunks in the output, set top to -1.
- Returns:
A table with the following columns:
chunkId: the unique identifier of chunk.
path: the physical path of the partition.
dfsPath: the dfs path of the partition.
tableName: the table name.
version: the version number.
rowNum: the number of records in the partition.
createCids: the Cids created when updating/deleting the table.
latestPhysicalDir: the temporary physical directory storing the data generated by the operation with the latest Cid.
diskUsage: the disk space occupied by partition (in Bytes).
- Return type: