Class ConcurrentTestCommandScript.SelectCommand
- java.lang.Object
-
- org.apache.calcite.test.concurrent.ConcurrentTestCommandGenerator.AbstractCommand
-
- org.apache.calcite.test.concurrent.ConcurrentTestCommandScript.CommandWithTimeout
-
- org.apache.calcite.test.concurrent.ConcurrentTestCommandScript.CommandWithTimeoutAndRowLimit
-
- org.apache.calcite.test.concurrent.ConcurrentTestCommandScript.SelectCommand
-
- All Implemented Interfaces:
ConcurrentTestCommand
- Enclosing class:
- ConcurrentTestCommandScript
private class ConcurrentTestCommandScript.SelectCommand extends ConcurrentTestCommandScript.CommandWithTimeoutAndRowLimit
SelectCommand creates and executes a SQL select statement, with optional timeout and row limit.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.calcite.test.concurrent.ConcurrentTestCommand
ConcurrentTestCommand.ShouldHaveFailedException
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
sql
-
Constructor Summary
Constructors Modifier Constructor Description private
SelectCommand(java.lang.String sql)
private
SelectCommand(java.lang.String sql, boolean errorExpected)
private
SelectCommand(java.lang.String sql, long timeout)
private
SelectCommand(java.lang.String sql, long timeout, int rowLimit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doExecute(ConcurrentTestCommandExecutor executor)
-
Methods inherited from class org.apache.calcite.test.concurrent.ConcurrentTestCommandScript.CommandWithTimeoutAndRowLimit
setRowLimit
-
Methods inherited from class org.apache.calcite.test.concurrent.ConcurrentTestCommandScript.CommandWithTimeout
setTimeout
-
Methods inherited from class org.apache.calcite.test.concurrent.ConcurrentTestCommandGenerator.AbstractCommand
execute, isFailureExpected, markToFail, markToFail
-
-
-
-
Constructor Detail
-
SelectCommand
private SelectCommand(java.lang.String sql)
-
SelectCommand
private SelectCommand(java.lang.String sql, boolean errorExpected)
-
SelectCommand
private SelectCommand(java.lang.String sql, long timeout)
-
SelectCommand
private SelectCommand(java.lang.String sql, long timeout, int rowLimit)
-
-
Method Detail
-
doExecute
protected void doExecute(ConcurrentTestCommandExecutor executor) throws java.sql.SQLException
- Specified by:
doExecute
in classConcurrentTestCommandGenerator.AbstractCommand
- Throws:
java.sql.SQLException
-
-