Class GcsUtils

java.lang.Object
io.trino.filesystem.gcs.GcsUtils

public class GcsUtils extends Object
  • Method Details

    • handleGcsException

      public static IOException handleGcsException(RuntimeException exception, String action, io.trino.filesystem.gcs.GcsLocation location) throws IOException
      Throws:
      IOException
    • handleGcsException

      public static IOException handleGcsException(RuntimeException exception, String action, Collection<Location> locations) throws IOException
      Throws:
      IOException
    • getReadChannel

      public static com.google.cloud.ReadChannel getReadChannel(com.google.cloud.storage.Blob blob, io.trino.filesystem.gcs.GcsLocation location, long position, int readBlockSize, OptionalLong limit) throws IOException
      Throws:
      IOException
    • getBlob

      public static Optional<com.google.cloud.storage.Blob> getBlob(com.google.cloud.storage.Storage storage, io.trino.filesystem.gcs.GcsLocation location, com.google.cloud.storage.Storage.BlobGetOption... blobGetOptions)
    • getBlobOrThrow

      public static com.google.cloud.storage.Blob getBlobOrThrow(com.google.cloud.storage.Storage storage, io.trino.filesystem.gcs.GcsLocation location, com.google.cloud.storage.Storage.BlobGetOption... blobGetOptions) throws IOException
      Throws:
      IOException