Package org.apache.iceberg.aws.s3
Class S3InputFile
- java.lang.Object
- 
- org.apache.iceberg.aws.s3.S3InputFile
 
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AwsPropertiesawsProperties()booleanexists()Note: this may be stale if file was deleted since metadata is cached for size/existence checks.static S3InputFilefromLocation(java.lang.String location, software.amazon.awssdk.services.s3.S3Client client)static S3InputFilefromLocation(java.lang.String location, software.amazon.awssdk.services.s3.S3Client client, AwsProperties awsProperties)longgetLength()Note: this may be stale if file was deleted since metadata is cached for size/existence checks.protected software.amazon.awssdk.services.s3.model.HeadObjectResponsegetObjectMetadata()java.lang.Stringlocation()SeekableInputStreamnewStream()Opens a newSeekableInputStreamfor the underlying data filejava.lang.StringtoString()
 
- 
- 
- 
Method Detail- 
fromLocationpublic static S3InputFile fromLocation(java.lang.String location, software.amazon.awssdk.services.s3.S3Client client) 
 - 
fromLocationpublic static S3InputFile fromLocation(java.lang.String location, software.amazon.awssdk.services.s3.S3Client client, AwsProperties awsProperties) 
 - 
getLengthpublic long getLength() Note: this may be stale if file was deleted since metadata is cached for size/existence checks.
 - 
newStreampublic SeekableInputStream newStream() Description copied from interface:InputFileOpens a newSeekableInputStreamfor the underlying data file
 - 
locationpublic java.lang.String location() 
 - 
awsPropertiespublic AwsProperties awsProperties() 
 - 
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
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-