Class GSBlobIdentifier

java.lang.Object
org.apache.flink.fs.gs.storage.GSBlobIdentifier

public class GSBlobIdentifier extends Object
An abstraction for the Google BlobId type.
  • Field Details

    • bucketName

      public final String bucketName
      The bucket name.
    • objectName

      public final String objectName
      The object name, within the bucket.
  • Constructor Details

    • GSBlobIdentifier

      public GSBlobIdentifier(String bucketName, String objectName)
      Construct an abstract blob identifier.
      Parameters:
      bucketName - The bucket name
      objectName - The object name
  • Method Details

    • getBlobId

      public com.google.cloud.storage.BlobId getBlobId()
      Get a Google blob id for this identifier, with generation=null.
      Returns:
      The BlobId
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • fromBlobId

      public static GSBlobIdentifier fromBlobId(com.google.cloud.storage.BlobId blobId)
      Construct an abstract blob identifier from a Google BlobId.
      Parameters:
      blobId - The Google BlobId
      Returns:
      The abstract blob identifier