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
Nested ClassesModifier and TypeClassDescription(package private) static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ArrayList<BackupManifest.BackupImage>private Stringprivate longprivate Stringprivate longprivate BackupType -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateBackupImage(String backupId, BackupType type, String rootDir, List<TableName> tableList, long startTs, long completeTs) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddAncestor(BackupManifest.BackupImage backupImage) intboolean(package private) static BackupManifest.BackupImagefromProto(org.apache.hadoop.hbase.shaded.protobuf.generated.BackupProtos.BackupImage im) longlonggetType()booleanhasAncestor(String token) inthashCode()booleanloadIncrementalTimestampMap(org.apache.hadoop.hbase.shaded.protobuf.generated.BackupProtos.BackupImage proto) (package private) static BackupManifest.BackupImage.BuildervoidremoveAncestors(List<String> backupIds) private voidsetBackupId(String backupId) private voidsetCompleteTs(long completeTs) private voidsetIncrementalTimestampMap(org.apache.hadoop.hbase.shaded.protobuf.generated.BackupProtos.BackupImage.Builder builder) private voidprivate voidsetRootDir(String rootDir) private voidsetStartTs(long startTs) private voidsetTableList(List<TableName> tableList) private voidsetType(BackupType type) (package private) org.apache.hadoop.hbase.shaded.protobuf.generated.BackupProtos.BackupImagetoProto()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:
compareToin interfaceComparable<BackupManifest.BackupImage>
-
equals
-
hashCode
-
getIncrTimeRanges
-
setIncrTimeRanges
-