Class HttpBackupStore
java.lang.Object
io.trino.plugin.raptor.legacy.backup.HttpBackupStore
- All Implemented Interfaces:
BackupStore
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHttpBackupStore(io.airlift.http.client.HttpClient httpClient, Supplier<URI> baseUriSupplier, NodeManager nodeManager) -
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.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.
-
Field Details
-
TRINO_ENVIRONMENT
- See Also:
-
CONTENT_XXH64
- See Also:
-
-
Constructor Details
-
HttpBackupStore
@Inject public HttpBackupStore(io.airlift.http.client.HttpClient httpClient, Supplier<URI> baseUriSupplier, NodeManager nodeManager)
-
-
Method Details
-
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
-