Class S3ClientFactory
java.lang.Object
org.gridgain.internal.sql.copy.s3.S3ClientFactory
S3 client factory.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic software.amazon.awssdk.services.s3.S3ClientcreateS3Client(Map<String, String> properties, LocationGuard guard) Creates S3 client.static ReadergetInputStreamReader(String path, Map<String, String> properties, LocationGuard guard) Creates Input Reader for reading an S3 key.static WritergetOutputStreamWriter(String path, Map<String, String> properties, LocationGuard guard) Creates Output Writer for writing an S3 key.static booleanChecks if file exists.
-
Constructor Details
-
S3ClientFactory
public S3ClientFactory()
-
-
Method Details
-
getInputStreamReader
public static Reader getInputStreamReader(String path, Map<String, String> properties, LocationGuard guard) Creates Input Reader for reading an S3 key.- Parameters:
path- S3 URI.properties- S3 properties.
-
getOutputStreamWriter
public static Writer getOutputStreamWriter(String path, Map<String, String> properties, LocationGuard guard) throws IOExceptionCreates Output Writer for writing an S3 key.- Parameters:
path- S3 URI.properties- S3 properties.- Throws:
IOException
-
createS3Client
public static software.amazon.awssdk.services.s3.S3Client createS3Client(Map<String, String> properties, LocationGuard guard) Creates S3 client. -
keyExist
Checks if file exists.
-