Package org.apache.drill.jdbc.impl
Class DrillStatementImpl
java.lang.Object
org.apache.calcite.avatica.AvaticaStatement
org.apache.drill.jdbc.impl.DrillStatementImpl
- All Implemented Interfaces:
AutoCloseable
,Statement
,Wrapper
,DrillStatement
public class DrillStatementImpl
extends org.apache.calcite.avatica.AvaticaStatement
implements DrillStatement
Drill's implementation of
Statement
.-
Field Summary
Fields inherited from class org.apache.calcite.avatica.AvaticaStatement
cancelFlag, closed, closeOnCompletion, DEFAULT_FETCH_SIZE, handle, maxRowCount, openResultSet, updateCount
Fields inherited from interface java.sql.Statement
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO
-
Method Summary
Modifier and TypeMethodDescriptionvoid
protected void
Throws AlreadyClosedSqlException iff this Statement is closed.void
cleanUp()
void
boolean
boolean
boolean
int[]
long
executeLargeUpdate
(String sql, int autoGeneratedKeys) long
executeLargeUpdate
(String sql, int[] columnIndexes) long
executeLargeUpdate
(String sql, String[] columnNames) int
executeUpdate
(String sql, int autoGeneratedKeys) int
executeUpdate
(String sql, int[] columnIndexes) int
executeUpdate
(String sql, String[] columnNames) boolean
boolean
getMoreResults
(int current) boolean
isClosed()
void
setCursorName
(String name) void
setEscapeProcessing
(boolean enable) void
setLargeMaxRows
(long maxRowCount) void
setPoolable
(boolean poolable) void
setResultSet
(org.apache.calcite.avatica.AvaticaResultSet resultSet) void
setUpdateCount
(int value) Methods inherited from class org.apache.calcite.avatica.AvaticaStatement
cancel, clearWarnings, close, close_, closeOnCompletion, execute, executeBatchInternal, executeInternal, executeInternal, executeLargeBatch, executeLargeUpdate, executeQuery, executeQueryInternal, executeUpdate, getBoundParameterValues, getFetchDirection, getFetchSize, getId, getLargeMaxRows, getLargeUpdateCount, getMaxFieldSize, getMaxRows, getParameterValues, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getSignature, getStatementType, getUpdateCount, getWarnings, isCloseOnCompletion, isPoolable, isWrapperFor, resetStatement, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setQueryTimeout, setSignature, syncResults, unwrap
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.drill.jdbc.DrillStatement
getQueryTimeout, setQueryTimeout
Methods inherited from interface java.sql.Statement
cancel, clearWarnings, close, closeOnCompletion, execute, executeLargeBatch, executeLargeUpdate, executeQuery, executeUpdate, getFetchDirection, getFetchSize, getLargeMaxRows, getLargeUpdateCount, getMaxFieldSize, getMaxRows, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isCloseOnCompletion, isPoolable, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows
Methods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
-
Method Details
-
checkOpen
Throws AlreadyClosedSqlException iff this Statement is closed.- Overrides:
checkOpen
in classorg.apache.calcite.avatica.AvaticaStatement
- Throws:
AlreadyClosedSqlException
- if Statement is closed
-
getConnection
- Specified by:
getConnection
in interfaceStatement
- Overrides:
getConnection
in classorg.apache.calcite.avatica.AvaticaStatement
- Throws:
SQLException
-
executeLargeUpdate
- Specified by:
executeLargeUpdate
in interfaceStatement
- Throws:
SQLException
-
executeLargeUpdate
- Specified by:
executeLargeUpdate
in interfaceStatement
- Throws:
SQLException
-
executeLargeUpdate
- Specified by:
executeLargeUpdate
in interfaceStatement
- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdate
in interfaceStatement
- Overrides:
executeUpdate
in classorg.apache.calcite.avatica.AvaticaStatement
- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdate
in interfaceStatement
- Overrides:
executeUpdate
in classorg.apache.calcite.avatica.AvaticaStatement
- Throws:
SQLException
-
cleanUp
public void cleanUp() -
isClosed
public boolean isClosed()Description copied from interface:DrillStatement
Drill: Does not throw SQLException.
- Specified by:
isClosed
in interfaceDrillStatement
- Specified by:
isClosed
in interfaceStatement
- Overrides:
isClosed
in classorg.apache.calcite.avatica.AvaticaStatement
-
setEscapeProcessing
- Specified by:
setEscapeProcessing
in interfaceStatement
- Overrides:
setEscapeProcessing
in classorg.apache.calcite.avatica.AvaticaStatement
- Throws:
SQLException
-
setCursorName
- Specified by:
setCursorName
in interfaceStatement
- Overrides:
setCursorName
in classorg.apache.calcite.avatica.AvaticaStatement
- Throws:
SQLException
-
getMoreResults
- Specified by:
getMoreResults
in interfaceStatement
- Overrides:
getMoreResults
in classorg.apache.calcite.avatica.AvaticaStatement
- Throws:
SQLException
-
addBatch
- Specified by:
addBatch
in interfaceStatement
- Overrides:
addBatch
in classorg.apache.calcite.avatica.AvaticaStatement
- Throws:
SQLException
-
clearBatch
- Specified by:
clearBatch
in interfaceStatement
- Overrides:
clearBatch
in classorg.apache.calcite.avatica.AvaticaStatement
- Throws:
SQLException
-
executeBatch
- Specified by:
executeBatch
in interfaceStatement
- Overrides:
executeBatch
in classorg.apache.calcite.avatica.AvaticaStatement
- Throws:
SQLException
-
getMoreResults
- Specified by:
getMoreResults
in interfaceStatement
- Overrides:
getMoreResults
in classorg.apache.calcite.avatica.AvaticaStatement
- Throws:
SQLException
-
getGeneratedKeys
- Specified by:
getGeneratedKeys
in interfaceStatement
- Overrides:
getGeneratedKeys
in classorg.apache.calcite.avatica.AvaticaStatement
- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdate
in interfaceStatement
- Overrides:
executeUpdate
in classorg.apache.calcite.avatica.AvaticaStatement
- Throws:
SQLException
-
execute
- Specified by:
execute
in interfaceStatement
- Overrides:
execute
in classorg.apache.calcite.avatica.AvaticaStatement
- Throws:
SQLException
-
execute
- Specified by:
execute
in interfaceStatement
- Overrides:
execute
in classorg.apache.calcite.avatica.AvaticaStatement
- Throws:
SQLException
-
execute
- Specified by:
execute
in interfaceStatement
- Overrides:
execute
in classorg.apache.calcite.avatica.AvaticaStatement
- Throws:
SQLException
-
setPoolable
- Specified by:
setPoolable
in interfaceStatement
- Overrides:
setPoolable
in classorg.apache.calcite.avatica.AvaticaStatement
- Throws:
SQLException
-
setResultSet
public void setResultSet(org.apache.calcite.avatica.AvaticaResultSet resultSet) - Specified by:
setResultSet
in interfaceDrillStatement
-
setUpdateCount
public void setUpdateCount(int value) - Specified by:
setUpdateCount
in interfaceDrillStatement
-
setLargeMaxRows
- Specified by:
setLargeMaxRows
in interfaceStatement
- Overrides:
setLargeMaxRows
in classorg.apache.calcite.avatica.AvaticaStatement
- Throws:
SQLException
-