Class FileBackupStore
java.lang.Object
io.trino.plugin.raptor.legacy.backup.FileBackupStore
- All Implemented Interfaces:
BackupStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbackupShard(UUID uuid, File source) Backup a shard by copying it to the backup store.booleandeleteShard(UUID uuid) Delete shard from the backup store if it exists.getBackupFile(UUID uuid) voidrestoreShard(UUID uuid, File target) Restore a shard by copying it from the backup store.booleanshardExists(UUID uuid) Check if a shard exists in the backup store.voidstart()
-
Constructor Details
-
FileBackupStore
-
FileBackupStore
-
-
Method Details
-
start
@PostConstruct public void start() -
backupShard
Description copied from interface:BackupStoreBackup a shard by copying it to the backup store.- Specified by:
backupShardin interfaceBackupStore- Parameters:
uuid- shard UUIDsource- the source file
-
restoreShard
Description copied from interface:BackupStoreRestore a shard by copying it from the backup store.- Specified by:
restoreShardin interfaceBackupStore- Parameters:
uuid- shard UUIDtarget- the destination file
-
deleteShard
Description copied from interface:BackupStoreDelete shard from the backup store if it exists.- Specified by:
deleteShardin interfaceBackupStore- Parameters:
uuid- shard UUID- Returns:
trueif the shard was deleted;falseif it did not exist
-
shardExists
Description copied from interface:BackupStoreCheck if a shard exists in the backup store.- Specified by:
shardExistsin interfaceBackupStore- Parameters:
uuid- shard UUID- Returns:
- if the shard exists
-
getBackupFile
-