Class HttpBackupStore

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

public class HttpBackupStore extends Object implements BackupStore
  • Field Details

  • Constructor Details

    • HttpBackupStore

      @Inject public HttpBackupStore(io.airlift.http.client.HttpClient httpClient, Supplier<URI> baseUriSupplier, NodeManager nodeManager)
  • 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