类 FlinkStatement
- java.lang.Object
-
- net.wicp.tams.common.flink.sqlgateway.jdbc.FlinkStatement
-
- 所有已实现的接口:
AutoCloseable,Statement,Wrapper
public class FlinkStatement extends Object implements Statement
Flink JDBC statement.beeline
-
-
字段概要
字段 修饰符和类型 字段 说明 protected booleanisQuery
-
构造器概要
构造器 构造器 说明 FlinkStatement(net.wicp.tams.common.http.flink.SqlGateWay sqlGateWay, FlinkConnection flinkConnection)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidaddBatch(String sql)voidcancel()protected voidcheckClosed()voidclearBatch()voidclearWarnings()voidclose()voidcloseOnCompletion()booleanexecute(String sql)booleanexecute(String sql, int autoGeneratedKeys)booleanexecute(String sql, int[] columnIndexes)booleanexecute(String sql, String[] columnNames)int[]executeBatch()ResultSetexecuteQuery(String sql)注意:select在flink里拿到的结果不一定正确,sqlgate接口这块非常不稳定intexecuteUpdate(String sql)intexecuteUpdate(String sql, int autoGeneratedKeys)intexecuteUpdate(String sql, int[] columnIndexes)intexecuteUpdate(String sql, String[] columnNames)ConnectiongetConnection()intgetFetchDirection()intgetFetchSize()ResultSetgetGeneratedKeys()intgetMaxFieldSize()intgetMaxRows()booleangetMoreResults()booleangetMoreResults(int current)intgetQueryTimeout()ResultSetgetResultSet()intgetResultSetConcurrency()intgetResultSetHoldability()intgetResultSetType()intgetUpdateCount()SQLWarninggetWarnings()booleanisClosed()booleanisCloseOnCompletion()booleanisPoolable()booleanisWrapperFor(Class<?> iface)voidsetCursorName(String name)voidsetEscapeProcessing(boolean enable)voidsetFetchDirection(int direction)voidsetFetchSize(int rows)voidsetLargeMaxRows(long max)voidsetMaxFieldSize(int max)voidsetMaxRows(int max)voidsetPoolable(boolean poolable)voidsetQueryTimeout(int seconds)<T> Tunwrap(Class<T> iface)
-
-
-
构造器详细资料
-
FlinkStatement
public FlinkStatement(net.wicp.tams.common.http.flink.SqlGateWay sqlGateWay, FlinkConnection flinkConnection)
-
-
方法详细资料
-
unwrap
public <T> T unwrap(Class<T> iface) throws SQLException
- 指定者:
unwrap在接口中Wrapper- 抛出:
SQLException
-
isWrapperFor
public boolean isWrapperFor(Class<?> iface) throws SQLException
- 指定者:
isWrapperFor在接口中Wrapper- 抛出:
SQLException
-
executeQuery
public ResultSet executeQuery(String sql) throws SQLException
注意:select在flink里拿到的结果不一定正确,sqlgate接口这块非常不稳定- 指定者:
executeQuery在接口中Statement- 抛出:
SQLException
-
executeUpdate
public int executeUpdate(String sql) throws SQLException
- 指定者:
executeUpdate在接口中Statement- 抛出:
SQLException
-
close
public void close() throws SQLException- 指定者:
close在接口中AutoCloseable- 指定者:
close在接口中Statement- 抛出:
SQLException
-
getMaxFieldSize
public int getMaxFieldSize() throws SQLException- 指定者:
getMaxFieldSize在接口中Statement- 抛出:
SQLException
-
setMaxFieldSize
public void setMaxFieldSize(int max) throws SQLException- 指定者:
setMaxFieldSize在接口中Statement- 抛出:
SQLException
-
getMaxRows
public int getMaxRows() throws SQLException- 指定者:
getMaxRows在接口中Statement- 抛出:
SQLException
-
setMaxRows
public void setMaxRows(int max) throws SQLException- 指定者:
setMaxRows在接口中Statement- 抛出:
SQLException
-
setLargeMaxRows
public void setLargeMaxRows(long max) throws SQLException- 指定者:
setLargeMaxRows在接口中Statement- 抛出:
SQLException
-
setEscapeProcessing
public void setEscapeProcessing(boolean enable) throws SQLException- 指定者:
setEscapeProcessing在接口中Statement- 抛出:
SQLException
-
getQueryTimeout
public int getQueryTimeout() throws SQLException- 指定者:
getQueryTimeout在接口中Statement- 抛出:
SQLException
-
setQueryTimeout
public void setQueryTimeout(int seconds) throws SQLException- 指定者:
setQueryTimeout在接口中Statement- 抛出:
SQLException
-
cancel
public void cancel() throws SQLException- 指定者:
cancel在接口中Statement- 抛出:
SQLException
-
getWarnings
public SQLWarning getWarnings() throws SQLException
- 指定者:
getWarnings在接口中Statement- 抛出:
SQLException
-
clearWarnings
public void clearWarnings() throws SQLException- 指定者:
clearWarnings在接口中Statement- 抛出:
SQLException
-
setCursorName
public void setCursorName(String name) throws SQLException
- 指定者:
setCursorName在接口中Statement- 抛出:
SQLException
-
execute
public boolean execute(String sql) throws SQLException
- 指定者:
execute在接口中Statement- 抛出:
SQLException
-
getResultSet
public ResultSet getResultSet() throws SQLException
- 指定者:
getResultSet在接口中Statement- 抛出:
SQLException
-
getUpdateCount
public int getUpdateCount() throws SQLException- 指定者:
getUpdateCount在接口中Statement- 抛出:
SQLException
-
getMoreResults
public boolean getMoreResults() throws SQLException- 指定者:
getMoreResults在接口中Statement- 抛出:
SQLException
-
setFetchDirection
public void setFetchDirection(int direction) throws SQLException- 指定者:
setFetchDirection在接口中Statement- 抛出:
SQLException
-
getFetchDirection
public int getFetchDirection() throws SQLException- 指定者:
getFetchDirection在接口中Statement- 抛出:
SQLException
-
setFetchSize
public void setFetchSize(int rows) throws SQLException- 指定者:
setFetchSize在接口中Statement- 抛出:
SQLException
-
getFetchSize
public int getFetchSize() throws SQLException- 指定者:
getFetchSize在接口中Statement- 抛出:
SQLException
-
getResultSetConcurrency
public int getResultSetConcurrency() throws SQLException- 指定者:
getResultSetConcurrency在接口中Statement- 抛出:
SQLException
-
getResultSetType
public int getResultSetType() throws SQLException- 指定者:
getResultSetType在接口中Statement- 抛出:
SQLException
-
addBatch
public void addBatch(String sql) throws SQLException
- 指定者:
addBatch在接口中Statement- 抛出:
SQLException
-
clearBatch
public void clearBatch() throws SQLException- 指定者:
clearBatch在接口中Statement- 抛出:
SQLException
-
executeBatch
public int[] executeBatch() throws SQLException- 指定者:
executeBatch在接口中Statement- 抛出:
SQLException
-
getConnection
public Connection getConnection() throws SQLException
- 指定者:
getConnection在接口中Statement- 抛出:
SQLException
-
getMoreResults
public boolean getMoreResults(int current) throws SQLException- 指定者:
getMoreResults在接口中Statement- 抛出:
SQLException
-
getGeneratedKeys
public ResultSet getGeneratedKeys() throws SQLException
- 指定者:
getGeneratedKeys在接口中Statement- 抛出:
SQLException
-
executeUpdate
public int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException
- 指定者:
executeUpdate在接口中Statement- 抛出:
SQLException
-
executeUpdate
public int executeUpdate(String sql, int[] columnIndexes) throws SQLException
- 指定者:
executeUpdate在接口中Statement- 抛出:
SQLException
-
executeUpdate
public int executeUpdate(String sql, String[] columnNames) throws SQLException
- 指定者:
executeUpdate在接口中Statement- 抛出:
SQLException
-
execute
public boolean execute(String sql, int autoGeneratedKeys) throws SQLException
- 指定者:
execute在接口中Statement- 抛出:
SQLException
-
execute
public boolean execute(String sql, int[] columnIndexes) throws SQLException
- 指定者:
execute在接口中Statement- 抛出:
SQLException
-
execute
public boolean execute(String sql, String[] columnNames) throws SQLException
- 指定者:
execute在接口中Statement- 抛出:
SQLException
-
getResultSetHoldability
public int getResultSetHoldability() throws SQLException- 指定者:
getResultSetHoldability在接口中Statement- 抛出:
SQLException
-
isClosed
public boolean isClosed() throws SQLException- 指定者:
isClosed在接口中Statement- 抛出:
SQLException
-
setPoolable
public void setPoolable(boolean poolable) throws SQLException- 指定者:
setPoolable在接口中Statement- 抛出:
SQLException
-
isPoolable
public boolean isPoolable() throws SQLException- 指定者:
isPoolable在接口中Statement- 抛出:
SQLException
-
closeOnCompletion
public void closeOnCompletion() throws SQLException- 指定者:
closeOnCompletion在接口中Statement- 抛出:
SQLException
-
isCloseOnCompletion
public boolean isCloseOnCompletion() throws SQLException- 指定者:
isCloseOnCompletion在接口中Statement- 抛出:
SQLException
-
checkClosed
protected void checkClosed() throws SQLException- 抛出:
SQLException
-
-