Package com.databend.jdbc.cloud
Class DatabendPresignClientV1
- java.lang.Object
-
- com.databend.jdbc.cloud.DatabendPresignClientV1
-
- All Implemented Interfaces:
DatabendPresignClient
public class DatabendPresignClientV1 extends Object implements DatabendPresignClient
-
-
Constructor Summary
Constructors Constructor Description DatabendPresignClientV1(okhttp3.OkHttpClient client, String uri)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidpresignDownload(String destFileName, okhttp3.Headers headers, String presignedUrl)InputStreampresignDownloadStream(okhttp3.Headers headers, String presignedUrl)voidpresignUpload(File srcFile, InputStream inputStream, String stageName, String relativePath, String name, long fileSize, boolean uploadFromStream)presignUpload file through databend api instead of presigned url, it should only be adopted if presigned url is not availablevoidpresignUpload(File srcFile, InputStream inputStream, okhttp3.Headers headers, String presignedUrl, long fileSize, boolean uploadFromStream)
-
-
-
Constructor Detail
-
DatabendPresignClientV1
public DatabendPresignClientV1(okhttp3.OkHttpClient client, String uri)
-
-
Method Detail
-
presignUpload
public void presignUpload(File srcFile, InputStream inputStream, okhttp3.Headers headers, String presignedUrl, long fileSize, boolean uploadFromStream) throws IOException
- Specified by:
presignUploadin interfaceDatabendPresignClient- Throws:
IOException
-
presignUpload
public void presignUpload(File srcFile, InputStream inputStream, String stageName, String relativePath, String name, long fileSize, boolean uploadFromStream) throws IOException
Description copied from interface:DatabendPresignClientpresignUpload file through databend api instead of presigned url, it should only be adopted if presigned url is not available- Specified by:
presignUploadin interfaceDatabendPresignClient- Parameters:
srcFile- the file to be uploadedinputStream- the input stream to be uploadeduploadFromStream- whether the upload is from stream- Throws:
IOException
-
presignDownload
public void presignDownload(String destFileName, okhttp3.Headers headers, String presignedUrl)
- Specified by:
presignDownloadin interfaceDatabendPresignClient
-
presignDownloadStream
public InputStream presignDownloadStream(okhttp3.Headers headers, String presignedUrl)
- Specified by:
presignDownloadStreamin interfaceDatabendPresignClient
-
-