类 DatabendConnection
java.lang.Object
com.databend.jdbc.DatabendConnection
- 所有已实现的接口:
FileTransferAPI,AutoCloseable,Connection,Wrapper
-
字段概要
-
方法概要
修饰符和类型方法说明voidvoidvoidclose()voidcommit()voidcopyIntoTable(String database, String tableName, DatabendCopyParams params) Copy into the target table from files on the internal stage Documentation: https://databend.rs/doc/sql-commands/dml/dml-copy-into-tablebooleancreateArrayOf(String s, Object[] objects) createStatement(int resultSetType, int resultSetConcurrency) createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) createStruct(String s, Object[] objects) downloadStream(String stageName, String sourceFileName, boolean decompress) Download a file from the databend internal stage, the data would be downloaded as one file with no split.booleanstatic StringgetCopyIntoSql(String database, DatabendCopyParams params) intokhttp3.OkHttpClientintcom.databend.client.PaginationOptionscom.databend.client.DatabendSessionintgetURI()booleanisClosed()booleanbooleanisValid(int i) booleanisWrapperFor(Class<?> aClass) prepareCall(String s, int i, int i1) prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) prepareStatement(String s, int autoGeneratedKeys) prepareStatement(String s, int[] ints) prepareStatement(String s, int i, int i1) prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) prepareStatement(String s, String[] strings) booleanvoidreleaseSavepoint(Savepoint savepoint) voidrollback()voidvoidsetAutoCommit(boolean b) voidsetCatalog(String s) voidsetClientInfo(String s, String s1) voidsetClientInfo(Properties properties) voidsetHoldability(int holdability) voidsetNetworkTimeout(Executor executor, int i) voidsetReadOnly(boolean b) voidvoidsetSession(com.databend.client.DatabendSession session) voidsetTransactionIsolation(int i) voidsetTypeMap(Map<String, Class<?>> map) <T> TvoiduploadStream(String stageName, String destPrefix, InputStream inputStream, String destFileName, boolean compressData) Upload inputStream to the databend internal stage, the data would be uploaded as one file with no split.从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 java.sql.Connection
beginRequest, endRequest, setShardingKey, setShardingKey, setShardingKeyIfValid, setShardingKeyIfValid
-
方法详细资料
-
getCopyIntoSql
-
getSession
public com.databend.client.DatabendSession getSession() -
setSession
public void setSession(com.databend.client.DatabendSession session) -
getHttpClient
public okhttp3.OkHttpClient getHttpClient() -
createStatement
- 指定者:
createStatement在接口中Connection- 抛出:
SQLException
-
prepareStatement
- 指定者:
prepareStatement在接口中Connection- 抛出:
SQLException
-
prepareCall
- 指定者:
prepareCall在接口中Connection- 抛出:
SQLException
-
nativeSQL
- 指定者:
nativeSQL在接口中Connection- 抛出:
SQLException
-
commit
- 指定者:
commit在接口中Connection- 抛出:
SQLException
-
getAutoCommit
- 指定者:
getAutoCommit在接口中Connection- 抛出:
SQLException
-
setAutoCommit
- 指定者:
setAutoCommit在接口中Connection- 抛出:
SQLException
-
rollback
- 指定者:
rollback在接口中Connection- 抛出:
SQLException
-
close
- 指定者:
close在接口中AutoCloseable- 指定者:
close在接口中Connection- 抛出:
SQLException
-
isClosed
- 指定者:
isClosed在接口中Connection- 抛出:
SQLException
-
getMetaData
- 指定者:
getMetaData在接口中Connection- 抛出:
SQLException
-
isReadOnly
- 指定者:
isReadOnly在接口中Connection- 抛出:
SQLException
-
setReadOnly
- 指定者:
setReadOnly在接口中Connection- 抛出:
SQLException
-
getCatalog
- 指定者:
getCatalog在接口中Connection- 抛出:
SQLException
-
setCatalog
- 指定者:
setCatalog在接口中Connection- 抛出:
SQLException
-
getTransactionIsolation
- 指定者:
getTransactionIsolation在接口中Connection- 抛出:
SQLException
-
setTransactionIsolation
- 指定者:
setTransactionIsolation在接口中Connection- 抛出:
SQLException
-
getWarnings
- 指定者:
getWarnings在接口中Connection- 抛出:
SQLException
-
clearWarnings
- 指定者:
clearWarnings在接口中Connection- 抛出:
SQLException
-
createStatement
- 指定者:
createStatement在接口中Connection- 抛出:
SQLException
-
prepareStatement
- 指定者:
prepareStatement在接口中Connection- 抛出:
SQLException
-
prepareCall
- 指定者:
prepareCall在接口中Connection- 抛出:
SQLException
-
getTypeMap
- 指定者:
getTypeMap在接口中Connection- 抛出:
SQLException
-
setTypeMap
- 指定者:
setTypeMap在接口中Connection- 抛出:
SQLException
-
getHoldability
- 指定者:
getHoldability在接口中Connection- 抛出:
SQLException
-
setHoldability
- 指定者:
setHoldability在接口中Connection- 抛出:
SQLException
-
setSavepoint
- 指定者:
setSavepoint在接口中Connection- 抛出:
SQLException
-
setSavepoint
- 指定者:
setSavepoint在接口中Connection- 抛出:
SQLException
-
rollback
- 指定者:
rollback在接口中Connection- 抛出:
SQLException
-
releaseSavepoint
- 指定者:
releaseSavepoint在接口中Connection- 抛出:
SQLException
-
createStatement
public Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException - 指定者:
createStatement在接口中Connection- 抛出:
SQLException
-
prepareStatement
public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException - 指定者:
prepareStatement在接口中Connection- 抛出:
SQLException
-
prepareCall
public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException - 指定者:
prepareCall在接口中Connection- 抛出:
SQLException
-
prepareStatement
- 指定者:
prepareStatement在接口中Connection- 抛出:
SQLException
-
prepareStatement
- 指定者:
prepareStatement在接口中Connection- 抛出:
SQLException
-
prepareStatement
- 指定者:
prepareStatement在接口中Connection- 抛出:
SQLException
-
createClob
- 指定者:
createClob在接口中Connection- 抛出:
SQLException
-
createBlob
- 指定者:
createBlob在接口中Connection- 抛出:
SQLException
-
createNClob
- 指定者:
createNClob在接口中Connection- 抛出:
SQLException
-
createSQLXML
- 指定者:
createSQLXML在接口中Connection- 抛出:
SQLException
-
isValid
- 指定者:
isValid在接口中Connection- 抛出:
SQLException
-
setClientInfo
- 指定者:
setClientInfo在接口中Connection- 抛出:
SQLClientInfoException
-
getClientInfo
- 指定者:
getClientInfo在接口中Connection- 抛出:
SQLException
-
getClientInfo
- 指定者:
getClientInfo在接口中Connection- 抛出:
SQLException
-
setClientInfo
- 指定者:
setClientInfo在接口中Connection- 抛出:
SQLClientInfoException
-
createArrayOf
- 指定者:
createArrayOf在接口中Connection- 抛出:
SQLException
-
createStruct
- 指定者:
createStruct在接口中Connection- 抛出:
SQLException
-
getSchema
- 指定者:
getSchema在接口中Connection- 抛出:
SQLException
-
setSchema
- 指定者:
setSchema在接口中Connection- 抛出:
SQLException
-
abort
- 指定者:
abort在接口中Connection- 抛出:
SQLException
-
setNetworkTimeout
- 指定者:
setNetworkTimeout在接口中Connection- 抛出:
SQLException
-
getNetworkTimeout
- 指定者:
getNetworkTimeout在接口中Connection- 抛出:
SQLException
-
unwrap
- 指定者:
unwrap在接口中Wrapper- 抛出:
SQLException
-
isWrapperFor
- 指定者:
isWrapperFor在接口中Wrapper- 抛出:
SQLException
-
presignedUrlDisabled
public boolean presignedUrlDisabled() -
copyPurge
public boolean copyPurge() -
getPaginationOptions
public com.databend.client.PaginationOptions getPaginationOptions() -
getURI
-
uploadStream
public void uploadStream(String stageName, String destPrefix, InputStream inputStream, String destFileName, boolean compressData) throws SQLException 从接口复制的说明:FileTransferAPIUpload 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.- 指定者:
uploadStream在接口中FileTransferAPI- 参数:
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 stagecompressData- whether to compress the data- 抛出:
SQLException- failed to upload input stream
-
downloadStream
public InputStream downloadStream(String stageName, String sourceFileName, boolean decompress) throws SQLException 从接口复制的说明:FileTransferAPIDownload a file from the databend internal stage, the data would be downloaded as one file with no split.- 指定者:
downloadStream在接口中FileTransferAPI- 参数:
stageName- the stage which contains the filesourceFileName- the file name in the stagedecompress- whether to decompress the data- 返回:
- the input stream of the file
- 抛出:
SQLException
-
copyIntoTable
public void copyIntoTable(String database, String tableName, DatabendCopyParams params) throws SQLException 从接口复制的说明:FileTransferAPICopy into the target table from files on the internal stage Documentation: https://databend.rs/doc/sql-commands/dml/dml-copy-into-table- 指定者:
copyIntoTable在接口中FileTransferAPI- 参数:
database- the target table's databasetableName- the target table nameparams- copy options and file options- 抛出:
SQLException
-