@InterfaceAudience.Private @InterfaceStability.Evolving public class RestoreServerUtil extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
backupId |
protected Path |
backupRootPath |
protected Configuration |
conf |
protected FileSystem |
fs |
static Log |
LOG |
| Constructor and Description |
|---|
RestoreServerUtil(Configuration conf,
Path backupRootPath,
java.lang.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 java.lang.String backupId
protected FileSystem fs
public RestoreServerUtil(Configuration conf,
Path backupRootPath,
java.lang.String backupId)
throws java.io.IOException
java.io.IOExceptionpublic void incrementalRestoreTable(Path[] logDirs,
TableName[] tableNames,
TableName[] newTableNames)
throws java.io.IOException
logDir - : incremental backup folders, which contains WALtableNames - : source tableNames(table names were backuped)newTableNames - : target tableNames(table names to be restored to)java.io.IOException - exception