Class S3InputFile
java.lang.Object
org.gridgain.internal.sql.copy.parquet.s3.S3InputFile
- All Implemented Interfaces:
org.apache.parquet.io.InputFile
Input file implementation for S3 keys.
-
Method Summary
Modifier and TypeMethodDescriptionsoftware.amazon.awssdk.services.s3.S3Clientclient()Gets S3 client.static S3InputFilefromLocation(String location, software.amazon.awssdk.services.s3.S3Client client) Creates new instance of S3InputFile from an Uri like 's3://bucketname/keyname'.longprotected software.amazon.awssdk.services.s3.model.HeadObjectResponseGets object metadata.location()Gets file location.org.apache.parquet.io.SeekableInputStreamtoString()uri()Gets S3 URI.
-
Method Details
-
fromLocation
public static S3InputFile fromLocation(String location, software.amazon.awssdk.services.s3.S3Client client) Creates new instance of S3InputFile from an Uri like 's3://bucketname/keyname'.- Parameters:
location- S3 URI.client- S3 client.
-
getLength
public long getLength()- Specified by:
getLengthin interfaceorg.apache.parquet.io.InputFile
-
newStream
public org.apache.parquet.io.SeekableInputStream newStream()- Specified by:
newStreamin interfaceorg.apache.parquet.io.InputFile
-
location
Gets file location. -
client
public software.amazon.awssdk.services.s3.S3Client client()Gets S3 client. -
uri
Gets S3 URI. -
getObjectMetadata
protected software.amazon.awssdk.services.s3.model.HeadObjectResponse getObjectMetadata() throws software.amazon.awssdk.services.s3.model.S3ExceptionGets object metadata.- Throws:
software.amazon.awssdk.services.s3.model.S3Exception
-
toString
-