Class SamplePlugin
- java.lang.Object
-
- org.apache.calcite.test.concurrent.ConcurrentTestPlugin
-
- org.apache.calcite.test.concurrent.SamplePlugin
-
public class SamplePlugin extends ConcurrentTestPlugin
Sample mtsql plugin.To use add at start of script "@plugin org.apache.calcite.test.concurrent.SamplePlugin". After doing a prepare you can then do "@describeResultSet" to show columns returned by query.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
SamplePlugin.DescribeResultSet
Command that describes a result set.
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
DESCRIBE_RESULT_SET_CMD
-
Constructor Summary
Constructors Constructor Description SamplePlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConcurrentTestPluginCommand
getCommandFor(java.lang.String name, java.lang.String params)
Create and return plugin command for given name.java.lang.Iterable<java.lang.String>
getSupportedThreadCommands()
What commands are supported by this plugin within a thread or repeat section.-
Methods inherited from class org.apache.calcite.test.concurrent.ConcurrentTestPlugin
getSupportedPreSetupCommands, isTestDisabled, preSetupFor
-
-
-
-
Field Detail
-
DESCRIBE_RESULT_SET_CMD
private static final java.lang.String DESCRIBE_RESULT_SET_CMD
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCommandFor
public ConcurrentTestPluginCommand getCommandFor(java.lang.String name, java.lang.String params)
Description copied from class:ConcurrentTestPlugin
Create and return plugin command for given name.- Specified by:
getCommandFor
in classConcurrentTestPlugin
- Parameters:
name
- Name of command pluginparams
- parameters for command.- Returns:
- Initialized plugin command.
-
getSupportedThreadCommands
public java.lang.Iterable<java.lang.String> getSupportedThreadCommands()
Description copied from class:ConcurrentTestPlugin
What commands are supported by this plugin within a thread or repeat section. Commands should start with '@'.- Overrides:
getSupportedThreadCommands
in classConcurrentTestPlugin
- Returns:
- List of supported commands
-
-