Package com.databend.jdbc
Interface FileTransferAPI
-
- All Known Implementing Classes:
DatabendConnection
@Deprecated public interface FileTransferAPI
Deprecated.Deprecated. This interface has been replaced byDatabendConnection.Deprecated since version 4.0.1. Scheduled for removal in a future release. Please migrate to
DatabendConnectionfor equivalent functionality.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidcopyIntoTable(String database, String tableName, DatabendCopyParams params)Deprecated.execute the Copy SQL directlyInputStreamdownloadStream(String stageName, String sourceFileName, boolean decompress)Deprecated.Replaced by DatabendConnection.downloadStream() since version 4.0.1voiduploadStream(String stageName, String destPrefix, InputStream inputStream, String destFileName, long fileSize, boolean compressData)Deprecated.Replaced by DatabendConnection.uploadStream() since version 4.0.1
-
-
-
Method Detail
-
uploadStream
void uploadStream(String stageName, String destPrefix, InputStream inputStream, String destFileName, long fileSize, boolean compressData) throws SQLException
Deprecated.Replaced by DatabendConnection.uploadStream() since version 4.0.1Deprecated. UseDatabendConnection.uploadStream(String, String, InputStream, String, long, boolean)instead. Upload inputStream to the databend internal stage, the data would be uploaded as one file with no split. Caller should close the input stream after the upload is done.- Parameters:
stageName- the stage which receive uploaded filedestPrefix- the prefix of the file name in the stageinputStream- the input stream of the filedestFileName- the destination file name in the stagefileSize- the file size in the stagecompressData- whether to compress the data- Throws:
SQLException- failed to upload input stream
-
downloadStream
InputStream downloadStream(String stageName, String sourceFileName, boolean decompress) throws SQLException
Deprecated.Replaced by DatabendConnection.downloadStream() since version 4.0.1Deprecated. UseDatabendConnection.downloadStream(String, String)instead. Download a file from the databend internal stage, the data would be downloaded as one file with no split.- Parameters:
stageName- the stage which contains the filesourceFileName- the file name in the stagedecompress- whether to decompress the data- Returns:
- the input stream of the file
- Throws:
SQLException- failed to download input stream
-
copyIntoTable
void copyIntoTable(String database, String tableName, DatabendCopyParams params) throws SQLException
Deprecated.execute the Copy SQL directlyCopy into the target table from files on the internal stage Documentation: ...- Parameters:
database- the target table's databasetableName- the target table nameparams- copy options and file options- Throws:
SQLException- fail to copy into table
-
-