Class IcebergCommonObjectMetadata
- java.lang.Object
-
- net.snowflake.ingest.streaming.internal.fileTransferAgent.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 metadataOnly 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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addUserMetadata(String key, String value)
Adds the key value pair of custom user-metadata for the associated object.String
getContentEncoding()
long
getContentLength()
Map<String,String>
getUserMetadata()
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.void
setContentLength(long contentLength)
Sets size of the associated object in bytes
-
-
-
Method Detail
-
getUserMetadata
public Map<String,String> getUserMetadata()
- Specified by:
getUserMetadata
in interfacenet.snowflake.client.jdbc.cloud.storage.StorageObjectMetadata
- Returns:
- returns a Map/key-value pairs of metadata properties
-
getContentLength
public long getContentLength()
- Specified by:
getContentLength
in interfacenet.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 interfacenet.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 interfacenet.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 interfacenet.snowflake.client.jdbc.cloud.storage.StorageObjectMetadata
-
getContentEncoding
public String getContentEncoding()
- Specified by:
getContentEncoding
in interfacenet.snowflake.client.jdbc.cloud.storage.StorageObjectMetadata
-
-