Class DefaultPitrRestoreHandler
java.lang.Object
org.apache.hadoop.hbase.backup.impl.AbstractPitrRestoreHandler
org.apache.hadoop.hbase.backup.impl.DefaultPitrRestoreHandler
Default PITR restore handler that retrieves backup metadata from the system table.
This implementation is used when no custom backup root directory is specified in the request.
-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.backup.impl.AbstractPitrRestoreHandler
backupAdmin, conn, request -
Constructor Summary
ConstructorsConstructorDescriptionDefaultPitrRestoreHandler(Connection conn, PointInTimeRestoreRequest request) -
Method Summary
Modifier and TypeMethodDescriptionprotected List<PitrBackupMetadata>Retrieves completed backup entries from the BackupSystemTable and converts them intoPitrBackupMetadatausingBackupInfoAdapter.Methods inherited from class org.apache.hadoop.hbase.backup.impl.AbstractPitrRestoreHandler
validateAndRestore
-
Constructor Details
-
DefaultPitrRestoreHandler
-
-
Method Details
-
getBackupMetadata
protected List<PitrBackupMetadata> getBackupMetadata(PointInTimeRestoreRequest request) throws IOException Retrieves completed backup entries from the BackupSystemTable and converts them intoPitrBackupMetadatausingBackupInfoAdapter.- Specified by:
getBackupMetadatain classAbstractPitrRestoreHandler- Parameters:
request- the PITR request- Returns:
- list of completed backup metadata entries
- Throws:
IOException- if reading from the backup system table fails
-