Class BackupManifest.BackupImage
java.lang.Object
org.apache.hadoop.hbase.backup.impl.BackupManifest.BackupImage
- All Implemented Interfaces:
Comparable<BackupManifest.BackupImage>
- Enclosing class:
- BackupManifest
public static class BackupManifest.BackupImage
extends Object
implements Comparable<BackupManifest.BackupImage>
Backup image, the dependency graph is made up by series of backup images BackupImage contains
all the relevant information to restore the backup and is used during restore operation
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate ArrayList<BackupManifest.BackupImage>
private String
private long
private String
private long
private BackupType
-
Constructor Summary
ModifierConstructorDescriptionprivate
BackupImage
(String backupId, BackupType type, String rootDir, List<TableName> tableList, long startTs, long completeTs) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addAncestor
(BackupManifest.BackupImage backupImage) int
boolean
(package private) static BackupManifest.BackupImage
fromProto
(org.apache.hadoop.hbase.shaded.protobuf.generated.BackupProtos.BackupImage im) long
long
getType()
boolean
hasAncestor
(String token) int
hashCode()
boolean
loadIncrementalTimestampMap
(org.apache.hadoop.hbase.shaded.protobuf.generated.BackupProtos.BackupImage proto) (package private) static BackupManifest.BackupImage.Builder
void
removeAncestors
(List<String> backupIds) private void
setBackupId
(String backupId) private void
setCompleteTs
(long completeTs) private void
setIncrementalTimestampMap
(org.apache.hadoop.hbase.shaded.protobuf.generated.BackupProtos.BackupImage.Builder builder) private void
private void
setRootDir
(String rootDir) private void
setStartTs
(long startTs) private void
setTableList
(List<TableName> tableList) private void
setType
(BackupType type) (package private) org.apache.hadoop.hbase.shaded.protobuf.generated.BackupProtos.BackupImage
toProto()
This method deliberately does not include the backup root dir on the produced proto.
-
Field Details
-
backupId
-
type
-
rootDir
-
tableList
-
startTs
-
completeTs
-
ancestors
-
incrTimeRanges
-
-
Constructor Details
-
BackupImage
public BackupImage() -
BackupImage
private BackupImage(String backupId, BackupType type, String rootDir, List<TableName> tableList, long startTs, long completeTs)
-
-
Method Details
-
newBuilder
-
fromProto
static BackupManifest.BackupImage fromProto(org.apache.hadoop.hbase.shaded.protobuf.generated.BackupProtos.BackupImage im) -
toProto
org.apache.hadoop.hbase.shaded.protobuf.generated.BackupProtos.BackupImage toProto()This method deliberately does not include the backup root dir on the produced proto. This is because we don't want to persist the root dir on the backup itself, so that backups can still be used after they have moved locations. A restore's operator will always provide the root dir. -
loadIncrementalTimestampMap
-
setIncrementalTimestampMap
private void setIncrementalTimestampMap(org.apache.hadoop.hbase.shaded.protobuf.generated.BackupProtos.BackupImage.Builder builder) -
getBackupId
-
setBackupId
-
getType
-
setType
-
getRootDir
-
setRootDir
-
getTableNames
-
setTableList
-
getStartTs
-
setStartTs
-
getCompleteTs
-
setCompleteTs
-
getAncestors
-
removeAncestors
-
addAncestor
-
hasAncestor
-
hasTable
-
compareTo
- Specified by:
compareTo
in interfaceComparable<BackupManifest.BackupImage>
-
equals
-
hashCode
-
getIncrTimeRanges
-
setIncrTimeRanges
-