Class S3OutputFile
java.lang.Object
org.gridgain.internal.sql.copy.parquet.s3.S3OutputFile
- All Implemented Interfaces:
org.apache.parquet.io.OutputFile
Output file implementation for S3 keys.
-
Method Summary
Modifier and TypeMethodDescriptionsoftware.amazon.awssdk.services.s3.S3Clientclient()Gets S3 client.org.apache.parquet.io.PositionOutputStreamcreate(long l) org.apache.parquet.io.PositionOutputStreamcreateOrOverwrite(long l) longstatic S3OutputFilefromLocation(String location, software.amazon.awssdk.services.s3.S3Client client) Creates new instance of S3OutputFile from an Uri like 's3://bucketname/keyname'.protected software.amazon.awssdk.services.s3.model.HeadObjectResponseGets object metadata.location()Gets file location.booleantoString()uri()Gets S3 URI.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.parquet.io.OutputFile
getPath
-
Method Details
-
fromLocation
public static S3OutputFile fromLocation(String location, software.amazon.awssdk.services.s3.S3Client client) Creates new instance of S3OutputFile from an Uri like 's3://bucketname/keyname'.- Parameters:
location- S3 URI.client- S3 client.
-
create
- Specified by:
createin interfaceorg.apache.parquet.io.OutputFile- Throws:
IOException
-
createOrOverwrite
- Specified by:
createOrOverwritein interfaceorg.apache.parquet.io.OutputFile- Throws:
IOException
-
supportsBlockSize
public boolean supportsBlockSize()- Specified by:
supportsBlockSizein interfaceorg.apache.parquet.io.OutputFile
-
defaultBlockSize
public long defaultBlockSize()- Specified by:
defaultBlockSizein interfaceorg.apache.parquet.io.OutputFile
-
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
-