Class GCSFileIO

java.lang.Object
org.apache.iceberg.gcp.gcs.GCSFileIO
All Implemented Interfaces:
Closeable, Serializable, AutoCloseable, DelegateFileIO, FileIO, SupportsBulkOperations, SupportsPrefixOperations, SupportsStorageCredentials

public class GCSFileIO extends Object implements DelegateFileIO, SupportsStorageCredentials
FileIO Implementation backed by Google Cloud Storage (GCS)

Locations follow the conventions used by BlobId.fromGsUtilUri that follow the convention

gs://<bucket>/<blob_path>

See Cloud Storage Overview

See Also:
  • Constructor Details

    • GCSFileIO

      public GCSFileIO()
      No-arg constructor to load the FileIO dynamically.

      All fields are initialized by calling initialize(Map) later.

    • GCSFileIO

      public GCSFileIO(SerializableSupplier<com.google.cloud.storage.Storage> storageSupplier, GCPProperties gcpProperties)
      Constructor with custom storage supplier and GCP properties.

      Calling initialize(Map) will overwrite information set in this constructor.

      Parameters:
      storageSupplier - storage supplier
      gcpProperties - gcp properties
  • Method Details