Class IcebergCommonObjectMetadata

  • All Implemented Interfaces:
    net.snowflake.client.jdbc.cloud.storage.StorageObjectMetadata

    public class IcebergCommonObjectMetadata
    extends Object
    implements net.snowflake.client.jdbc.cloud.storage.StorageObjectMetadata
    Implements platform-independent interface Azure BLOB and GCS object metadata

    Only the metadata accessors and mutators used by the JDBC client currently are supported, additional methods should be added as needed

    Author:
    lgiakoumakis, ppaulus (rename)
    • Method Detail

      • getUserMetadata

        public Map<String,​String> getUserMetadata()
        Specified by:
        getUserMetadata in interface net.snowflake.client.jdbc.cloud.storage.StorageObjectMetadata
        Returns:
        returns a Map/key-value pairs of metadata properties
      • getContentLength

        public long getContentLength()
        Specified by:
        getContentLength in interface net.snowflake.client.jdbc.cloud.storage.StorageObjectMetadata
        Returns:
        returns the size of object in bytes
      • setContentLength

        public void setContentLength​(long contentLength)
        Sets size of the associated object in bytes
        Specified by:
        setContentLength in interface net.snowflake.client.jdbc.cloud.storage.StorageObjectMetadata
      • addUserMetadata

        public void addUserMetadata​(String key,
                                    String value)
        Adds the key value pair of custom user-metadata for the associated object.
        Specified by:
        addUserMetadata in interface net.snowflake.client.jdbc.cloud.storage.StorageObjectMetadata
      • setContentEncoding

        public void setContentEncoding​(String encoding)
        Sets the optional Content-Encoding HTTP header specifying what content encodings, have been applied to the object and what decoding mechanisms must be applied, in order to obtain the media-type referenced by the Content-Type field.
        Specified by:
        setContentEncoding in interface net.snowflake.client.jdbc.cloud.storage.StorageObjectMetadata
      • getContentEncoding

        public String getContentEncoding()
        Specified by:
        getContentEncoding in interface net.snowflake.client.jdbc.cloud.storage.StorageObjectMetadata