Package org.apache.iceberg.aliyun.oss
Class OSSURI
- java.lang.Object
-
- org.apache.iceberg.aliyun.oss.OSSURI
-
public class OSSURI extends java.lang.Object
This class represents a fully qualified location in OSS for input/output operations expressed as as URI. This implementation is provided to ensure compatibility with Hadoop Path implementations that may introduce encoding issues with native URI implementation. Note: Path-style access is deprecated and not supported by this implementation.
-
-
Constructor Summary
Constructors Constructor Description OSSURI(java.lang.String location)
Creates a new OSSURI based on the bucket and key parsed from the location The location in string form has the syntax as below, which refers to RFC2396: [scheme:][//bucket][object key][#fragment] [scheme:][//bucket][object key][?query][#fragment] It specifies precisely which characters are permitted in the various components of a URI reference in Aliyun OSS documentation as below: Bucket: https://help.aliyun.com/document_detail/257087.html Object: https://help.aliyun.com/document_detail/273129.html Scheme: https or oss
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
bucket()
Return OSS bucket name.java.lang.String
key()
Return OSS object key name.java.lang.String
location()
Return original, unmodified OSS URI location.java.lang.String
toString()
-
-
-
Constructor Detail
-
OSSURI
public OSSURI(java.lang.String location)
Creates a new OSSURI based on the bucket and key parsed from the location The location in string form has the syntax as below, which refers to RFC2396: [scheme:][//bucket][object key][#fragment] [scheme:][//bucket][object key][?query][#fragment] It specifies precisely which characters are permitted in the various components of a URI reference in Aliyun OSS documentation as below: Bucket: https://help.aliyun.com/document_detail/257087.html Object: https://help.aliyun.com/document_detail/273129.html Scheme: https or ossSupported access styles are https and oss://... URIs.
- Parameters:
location
- fully qualified URI.
-
-
Method Detail
-
bucket
public java.lang.String bucket()
Return OSS bucket name.
-
key
public java.lang.String key()
Return OSS object key name.
-
location
public java.lang.String location()
Return original, unmodified OSS URI location.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-