Class ManagedBackupStore

java.lang.Object
io.trino.plugin.raptor.legacy.backup.ManagedBackupStore
All Implemented Interfaces:
BackupStore

public class ManagedBackupStore extends Object implements BackupStore
  • Constructor Details

    • ManagedBackupStore

      public ManagedBackupStore(BackupStore store)
  • Method Details

    • backupShard

      public void backupShard(UUID uuid, File source)
      Description copied from interface: BackupStore
      Backup a shard by copying it to the backup store.
      Specified by:
      backupShard in interface BackupStore
      Parameters:
      uuid - shard UUID
      source - the source file
    • restoreShard

      public void restoreShard(UUID uuid, File target)
      Description copied from interface: BackupStore
      Restore a shard by copying it from the backup store.
      Specified by:
      restoreShard in interface BackupStore
      Parameters:
      uuid - shard UUID
      target - the destination file
    • deleteShard

      public boolean deleteShard(UUID uuid)
      Description copied from interface: BackupStore
      Delete shard from the backup store if it exists.
      Specified by:
      deleteShard in interface BackupStore
      Parameters:
      uuid - shard UUID
      Returns:
      true if the shard was deleted; false if it did not exist
    • shardExists

      public boolean shardExists(UUID uuid)
      Description copied from interface: BackupStore
      Check if a shard exists in the backup store.
      Specified by:
      shardExists in interface BackupStore
      Parameters:
      uuid - shard UUID
      Returns:
      if the shard exists
    • getBackupShard

      public BackupOperationStats getBackupShard()
    • getRestoreShard

      public BackupOperationStats getRestoreShard()
    • getDeleteShard

      public BackupOperationStats getDeleteShard()
    • getShardExists

      public BackupOperationStats getShardExists()