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, updateCountFields 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 TypeMethodDescriptionvoidprotected voidThrows AlreadyClosedSqlException iff this Statement is closed.voidcleanUp()voidbooleanbooleanbooleanint[]longexecuteLargeUpdate(String sql, int autoGeneratedKeys) longexecuteLargeUpdate(String sql, int[] columnIndexes) longexecuteLargeUpdate(String sql, String[] columnNames) intexecuteUpdate(String sql, int autoGeneratedKeys) intexecuteUpdate(String sql, int[] columnIndexes) intexecuteUpdate(String sql, String[] columnNames) booleanbooleangetMoreResults(int current) booleanisClosed()voidsetCursorName(String name) voidsetEscapeProcessing(boolean enable) voidsetLargeMaxRows(long maxRowCount) voidsetPoolable(boolean poolable) voidsetResultSet(org.apache.calcite.avatica.AvaticaResultSet resultSet) voidsetUpdateCount(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, unwrapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.drill.jdbc.DrillStatement
getQueryTimeout, setQueryTimeoutMethods inherited from interface java.sql.Statement
cancel, clearWarnings, close, closeOnCompletion, enquoteIdentifier, enquoteLiteral, enquoteNCharLiteral, execute, executeLargeBatch, executeLargeUpdate, executeQuery, executeUpdate, getFetchDirection, getFetchSize, getLargeMaxRows, getLargeUpdateCount, getMaxFieldSize, getMaxRows, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isCloseOnCompletion, isPoolable, isSimpleIdentifier, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRowsMethods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
-
Method Details
-
checkOpen
Throws AlreadyClosedSqlException iff this Statement is closed.- Overrides:
checkOpenin classorg.apache.calcite.avatica.AvaticaStatement- Throws:
AlreadyClosedSqlException- if Statement is closed
-
getConnection
- Specified by:
getConnectionin interfaceStatement- Overrides:
getConnectionin classorg.apache.calcite.avatica.AvaticaStatement- Throws:
SQLException
-
executeLargeUpdate
- Specified by:
executeLargeUpdatein interfaceStatement- Throws:
SQLException
-
executeLargeUpdate
- Specified by:
executeLargeUpdatein interfaceStatement- Throws:
SQLException
-
executeLargeUpdate
- Specified by:
executeLargeUpdatein interfaceStatement- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdatein interfaceStatement- Overrides:
executeUpdatein classorg.apache.calcite.avatica.AvaticaStatement- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdatein interfaceStatement- Overrides:
executeUpdatein classorg.apache.calcite.avatica.AvaticaStatement- Throws:
SQLException
-
cleanUp
public void cleanUp() -
isClosed
public boolean isClosed()Description copied from interface:DrillStatementDrill: Does not throw SQLException.
- Specified by:
isClosedin interfaceDrillStatement- Specified by:
isClosedin interfaceStatement- Overrides:
isClosedin classorg.apache.calcite.avatica.AvaticaStatement
-
setEscapeProcessing
- Specified by:
setEscapeProcessingin interfaceStatement- Overrides:
setEscapeProcessingin classorg.apache.calcite.avatica.AvaticaStatement- Throws:
SQLException
-
setCursorName
- Specified by:
setCursorNamein interfaceStatement- Overrides:
setCursorNamein classorg.apache.calcite.avatica.AvaticaStatement- Throws:
SQLException
-
getMoreResults
- Specified by:
getMoreResultsin interfaceStatement- Overrides:
getMoreResultsin classorg.apache.calcite.avatica.AvaticaStatement- Throws:
SQLException
-
addBatch
- Specified by:
addBatchin interfaceStatement- Overrides:
addBatchin classorg.apache.calcite.avatica.AvaticaStatement- Throws:
SQLException
-
clearBatch
- Specified by:
clearBatchin interfaceStatement- Overrides:
clearBatchin classorg.apache.calcite.avatica.AvaticaStatement- Throws:
SQLException
-
executeBatch
- Specified by:
executeBatchin interfaceStatement- Overrides:
executeBatchin classorg.apache.calcite.avatica.AvaticaStatement- Throws:
SQLException
-
getMoreResults
- Specified by:
getMoreResultsin interfaceStatement- Overrides:
getMoreResultsin classorg.apache.calcite.avatica.AvaticaStatement- Throws:
SQLException
-
getGeneratedKeys
- Specified by:
getGeneratedKeysin interfaceStatement- Overrides:
getGeneratedKeysin classorg.apache.calcite.avatica.AvaticaStatement- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdatein interfaceStatement- Overrides:
executeUpdatein classorg.apache.calcite.avatica.AvaticaStatement- Throws:
SQLException
-
execute
- Specified by:
executein interfaceStatement- Overrides:
executein classorg.apache.calcite.avatica.AvaticaStatement- Throws:
SQLException
-
execute
- Specified by:
executein interfaceStatement- Overrides:
executein classorg.apache.calcite.avatica.AvaticaStatement- Throws:
SQLException
-
execute
- Specified by:
executein interfaceStatement- Overrides:
executein classorg.apache.calcite.avatica.AvaticaStatement- Throws:
SQLException
-
setPoolable
- Specified by:
setPoolablein interfaceStatement- Overrides:
setPoolablein classorg.apache.calcite.avatica.AvaticaStatement- Throws:
SQLException
-
setResultSet
public void setResultSet(org.apache.calcite.avatica.AvaticaResultSet resultSet) - Specified by:
setResultSetin interfaceDrillStatement
-
setUpdateCount
public void setUpdateCount(int value) - Specified by:
setUpdateCountin interfaceDrillStatement
-
setLargeMaxRows
- Specified by:
setLargeMaxRowsin interfaceStatement- Overrides:
setLargeMaxRowsin classorg.apache.calcite.avatica.AvaticaStatement- Throws:
SQLException
-