@InterfaceAudience.Private @InterfaceStability.Evolving public class RestoreServerUtil extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
backupId |
protected Path |
backupRootPath |
protected Configuration |
conf |
protected FileSystem |
fs |
static Log |
LOG |
Constructor and Description |
---|
RestoreServerUtil(Configuration conf,
Path backupRootPath,
String backupId) |
Modifier and Type | Method and Description |
---|---|
void |
fullRestoreTable(Path tableBackupPath,
TableName tableName,
TableName newTableName,
boolean converted,
boolean truncateIfExists) |
void |
incrementalRestoreTable(Path[] logDirs,
TableName[] tableNames,
TableName[] newTableNames)
During incremental backup operation.
|
public static final Log LOG
protected Configuration conf
protected Path backupRootPath
protected String backupId
protected FileSystem fs
public RestoreServerUtil(Configuration conf, Path backupRootPath, String backupId) throws IOException
IOException
public void incrementalRestoreTable(Path[] logDirs, TableName[] tableNames, TableName[] newTableNames) throws IOException
logDir
- : incremental backup folders, which contains WALtableNames
- : source tableNames(table names were backuped)newTableNames
- : target tableNames(table names to be restored to)IOException
- exceptionpublic void fullRestoreTable(Path tableBackupPath, TableName tableName, TableName newTableName, boolean converted, boolean truncateIfExists) throws IOException
IOException