getBackupMeta#
- swordfish.function.getBackupMeta()#
Return a dictionary with information about the backup of a partition in a DFS table, which contains the following keys:
schema: the schema of the table
dfsPath: the DFS path to database chunks
rows: the number of records in a chunk
chunkID: the chunk ID
cid: the commit ID
- Parameters:
backupDir (Constant) – A string indicating the directory where the backup is saved.
dbPath (Constant) – A string indicating the path of a DFS database. For example: “dfs://demo”.
partition (Constant) – A string indicating the path of a partition under the database. For example: “/20190101/GOOG”.
tableName (Constant) – A string indicating a distributed table name.