Package org.apache.iceberg.aws.s3
Class S3InputFile
java.lang.Object
org.apache.iceberg.aws.s3.S3InputFile
- All Implemented Interfaces:
- NativelyEncryptedFile,- InputFile
- 
Method SummaryModifier and TypeMethodDescriptionbooleanexists()Note: this may be stale if file was deleted since metadata is cached for size/existence checks.static S3InputFilefromLocation(String location, long length, software.amazon.awssdk.services.s3.S3Client client, S3FileIOProperties s3FileIOProperties, MetricsContext metrics) Deprecated.static S3InputFilefromLocation(String location, long length, software.amazon.awssdk.services.s3.S3Client client, software.amazon.awssdk.services.s3.S3AsyncClient asyncClient, S3FileIOProperties s3FileIOProperties, MetricsContext metrics) Deprecated.since 1.10.0, will be removed in 1.11.0; usefromLocation(String, long, PrefixedS3Client, MetricsContext)instead.static S3InputFilefromLocation(String location, software.amazon.awssdk.services.s3.S3Client client, S3FileIOProperties s3FileIOProperties, MetricsContext metrics) Deprecated.since 1.10.0, will be removed in 1.11.0; usefromLocation(String, PrefixedS3Client, MetricsContext)instead.static S3InputFilefromLocation(String location, software.amazon.awssdk.services.s3.S3Client client, software.amazon.awssdk.services.s3.S3AsyncClient asyncClient, S3FileIOProperties s3FileIOProperties, MetricsContext metrics) Deprecated.since 1.10.0, will be removed in 1.11.0; usefromLocation(String, PrefixedS3Client, MetricsContext)instead.longNote: this may be stale if file was deleted since metadata is cached for size/existence checks.protected software.amazon.awssdk.services.s3.model.HeadObjectResponselocation()protected MetricsContextmetrics()Opens a newSeekableInputStreamfor the underlying data filevoidsetNativeCryptoParameters(NativeFileCryptoParameters nativeCryptoParameters) toString()
- 
Method Details- 
fromLocation@Deprecated public static S3InputFile fromLocation(String location, software.amazon.awssdk.services.s3.S3Client client, S3FileIOProperties s3FileIOProperties, MetricsContext metrics) Deprecated.since 1.10.0, will be removed in 1.11.0; usefromLocation(String, PrefixedS3Client, MetricsContext)instead.Creates aS3InputFilefrom the given parameters.
- 
fromLocation@Deprecated public static S3InputFile fromLocation(String location, software.amazon.awssdk.services.s3.S3Client client, software.amazon.awssdk.services.s3.S3AsyncClient asyncClient, S3FileIOProperties s3FileIOProperties, MetricsContext metrics) Deprecated.since 1.10.0, will be removed in 1.11.0; usefromLocation(String, PrefixedS3Client, MetricsContext)instead.Creates aS3InputFilefrom the given parameters.
- 
fromLocation@Deprecated public static S3InputFile fromLocation(String location, long length, software.amazon.awssdk.services.s3.S3Client client, S3FileIOProperties s3FileIOProperties, MetricsContext metrics) Deprecated.since 1.10.0, will be removed in 1.11.0; usefromLocation(String, long, PrefixedS3Client, MetricsContext)instead.Creates aS3InputFilefrom the given parameters.
- 
fromLocation@Deprecated public static S3InputFile fromLocation(String location, long length, software.amazon.awssdk.services.s3.S3Client client, software.amazon.awssdk.services.s3.S3AsyncClient asyncClient, S3FileIOProperties s3FileIOProperties, MetricsContext metrics) Deprecated.since 1.10.0, will be removed in 1.11.0; usefromLocation(String, long, PrefixedS3Client, MetricsContext)instead.Creates aS3InputFilefrom the given parameters.
- 
getLengthpublic long getLength()Note: this may be stale if file was deleted since metadata is cached for size/existence checks.
- 
newStreamDescription copied from interface:InputFileOpens a newSeekableInputStreamfor the underlying data file
- 
nativeCryptoParameters- Specified by:
- nativeCryptoParametersin interface- NativelyEncryptedFile
 
- 
setNativeCryptoParameters- Specified by:
- setNativeCryptoParametersin interface- NativelyEncryptedFile
 
- 
location
- 
s3FileIOProperties
- 
metrics
- 
existspublic boolean exists()Note: this may be stale if file was deleted since metadata is cached for size/existence checks.- Returns:
- flag
 
- 
getObjectMetadataprotected software.amazon.awssdk.services.s3.model.HeadObjectResponse getObjectMetadata() throws software.amazon.awssdk.services.s3.model.S3Exception- Throws:
- software.amazon.awssdk.services.s3.model.S3Exception
 
- 
toString
 
- 
fromLocation(String, long, PrefixedS3Client, MetricsContext)instead.