public class S3OutputFile
extends java.lang.Object
implements org.apache.iceberg.io.OutputFile, org.apache.iceberg.encryption.NativelyEncryptedFile
| Modifier and Type | Method and Description |
|---|---|
org.apache.iceberg.io.PositionOutputStream |
create()
Create an output stream for the specified location if the target object does not exist in S3 at
the time of invocation.
|
org.apache.iceberg.io.PositionOutputStream |
createOrOverwrite() |
boolean |
exists()
Note: this may be stale if file was deleted since metadata is cached for size/existence checks.
|
static S3OutputFile |
fromLocation(java.lang.String location,
software.amazon.awssdk.services.s3.S3Client client,
S3FileIOProperties s3FileIOProperties,
org.apache.iceberg.metrics.MetricsContext metrics) |
protected software.amazon.awssdk.services.s3.model.HeadObjectResponse |
getObjectMetadata() |
java.lang.String |
location() |
protected org.apache.iceberg.metrics.MetricsContext |
metrics() |
org.apache.iceberg.encryption.NativeFileCryptoParameters |
nativeCryptoParameters() |
S3FileIOProperties |
s3FileIOProperties() |
void |
setNativeCryptoParameters(org.apache.iceberg.encryption.NativeFileCryptoParameters nativeCryptoParameters) |
org.apache.iceberg.io.InputFile |
toInputFile() |
java.lang.String |
toString() |
public static S3OutputFile fromLocation(java.lang.String location, software.amazon.awssdk.services.s3.S3Client client, S3FileIOProperties s3FileIOProperties, org.apache.iceberg.metrics.MetricsContext metrics)
public org.apache.iceberg.io.PositionOutputStream create()
create in interface org.apache.iceberg.io.OutputFilepublic org.apache.iceberg.io.PositionOutputStream createOrOverwrite()
createOrOverwrite in interface org.apache.iceberg.io.OutputFilepublic org.apache.iceberg.io.InputFile toInputFile()
toInputFile in interface org.apache.iceberg.io.OutputFilepublic org.apache.iceberg.encryption.NativeFileCryptoParameters nativeCryptoParameters()
nativeCryptoParameters in interface org.apache.iceberg.encryption.NativelyEncryptedFilepublic void setNativeCryptoParameters(org.apache.iceberg.encryption.NativeFileCryptoParameters nativeCryptoParameters)
setNativeCryptoParameters in interface org.apache.iceberg.encryption.NativelyEncryptedFilepublic java.lang.String location()
public S3FileIOProperties s3FileIOProperties()
protected org.apache.iceberg.metrics.MetricsContext metrics()
public boolean exists()
protected software.amazon.awssdk.services.s3.model.HeadObjectResponse getObjectMetadata()
throws software.amazon.awssdk.services.s3.model.S3Exception
software.amazon.awssdk.services.s3.model.S3Exceptionpublic java.lang.String toString()
toString in class java.lang.Object