Package org.apache.iceberg.aliyun.oss
Class OSSURI
- java.lang.Object
-
- org.apache.iceberg.aliyun.oss.OSSURI
-
public class OSSURI extends java.lang.ObjectThis 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]
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringbucket()Return OSS bucket name.java.lang.Stringkey()Return OSS object key name.java.lang.Stringlocation()Return original, unmodified OSS URI location.java.lang.StringtoString()
-
-
-
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 oss
Supported 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:
toStringin classjava.lang.Object
-
-