Class CommonObjectMetadata

  • All Implemented Interfaces:
    StorageObjectMetadata

    public class CommonObjectMetadata
    extends Object
    implements 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

      • setContentLength

        public void setContentLength​(long contentLength)
        Sets size of the associated object in bytes
        Specified by:
        setContentLength in interface StorageObjectMetadata
        Parameters:
        contentLength - the length of content
      • 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 StorageObjectMetadata
        Parameters:
        key - the key of user metadata
        value - the value of user metadata
      • 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 StorageObjectMetadata
        Parameters:
        encoding - the encoding name using in HTTP header Content-Encoding