OmniSciDB  085a039ca4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
com.mapd.parser.extension.ddl.InterruptCommandTest Class Reference
+ Inheritance diagram for com.mapd.parser.extension.ddl.InterruptCommandTest:
+ Collaboration diagram for com.mapd.parser.extension.ddl.InterruptCommandTest:

Public Member Functions

 InterruptCommandTest ()
 
void killQuery () throws Exception
 
void alterSystemClear_cpu () throws Exception
 
void alterSystemClear_gpu () throws Exception
 
void alterSystemClear_render () throws Exception
 
- Public Member Functions inherited from com.mapd.parser.extension.ddl.DDLTest
void setup () throws Exception
 

Additional Inherited Members

- Protected Attributes inherited from com.mapd.parser.extension.ddl.DDLTest
String resourceDirPath
 
String jsonTestDir
 
- Static Protected Attributes inherited from com.mapd.parser.extension.ddl.DDLTest
static final Gson gson = new Gson()
 
- Package Functions inherited from com.mapd.parser.extension.ddl.DDLTest
TPlanResult processDdlCommand (final String ddlCommand) throws Exception
 
JsonObject getJsonFromFile (final String fileName) throws Exception
 

Detailed Description

Definition at line 11 of file InterruptCommandTest.java.

Constructor & Destructor Documentation

com.mapd.parser.extension.ddl.InterruptCommandTest.InterruptCommandTest ( )
inline

Definition at line 12 of file InterruptCommandTest.java.

References com.mapd.parser.extension.ddl.DDLTest.jsonTestDir, and com.mapd.parser.extension.ddl.DDLTest.resourceDirPath.

12  {
14  InterruptCommandTest.class.getClassLoader().getResource("").getPath();
15  jsonTestDir = "interruptcommands";
16  }

Member Function Documentation

void com.mapd.parser.extension.ddl.InterruptCommandTest.alterSystemClear_cpu ( ) throws Exception
inline

Definition at line 28 of file InterruptCommandTest.java.

References com.mapd.parser.extension.ddl.DDLTest.getJsonFromFile(), com.mapd.parser.extension.ddl.DDLTest.processDdlCommand(), and run_benchmark_import.result.

28  {
29  final JsonObject expectedJsonObject = getJsonFromFile("alter_system_clear_cpu.json");
30  final TPlanResult result = processDdlCommand("ALTER SYSTEM CLEAR CPU MEMORY;");
31  final JsonObject actualJsonObject =
32  gson.fromJson(result.plan_result, JsonObject.class);
33  assertEquals(expectedJsonObject, actualJsonObject);
34  }
JsonObject getJsonFromFile(final String fileName)
Definition: DDLTest.java:50
TPlanResult processDdlCommand(final String ddlCommand)
Definition: DDLTest.java:35

+ Here is the call graph for this function:

void com.mapd.parser.extension.ddl.InterruptCommandTest.alterSystemClear_gpu ( ) throws Exception
inline

Definition at line 37 of file InterruptCommandTest.java.

References com.mapd.parser.extension.ddl.DDLTest.getJsonFromFile(), com.mapd.parser.extension.ddl.DDLTest.processDdlCommand(), and run_benchmark_import.result.

37  {
38  final JsonObject expectedJsonObject = getJsonFromFile("alter_system_clear_gpu.json");
39  final TPlanResult result = processDdlCommand("ALTER SYSTEM CLEAR GPU MEMORY;");
40  final JsonObject actualJsonObject =
41  gson.fromJson(result.plan_result, JsonObject.class);
42  assertEquals(expectedJsonObject, actualJsonObject);
43  }
JsonObject getJsonFromFile(final String fileName)
Definition: DDLTest.java:50
TPlanResult processDdlCommand(final String ddlCommand)
Definition: DDLTest.java:35

+ Here is the call graph for this function:

void com.mapd.parser.extension.ddl.InterruptCommandTest.alterSystemClear_render ( ) throws Exception
inline

Definition at line 46 of file InterruptCommandTest.java.

References com.mapd.parser.extension.ddl.DDLTest.getJsonFromFile(), com.mapd.parser.extension.ddl.DDLTest.processDdlCommand(), and run_benchmark_import.result.

46  {
47  final JsonObject expectedJsonObject =
48  getJsonFromFile("alter_system_clear_render.json");
49  final TPlanResult result = processDdlCommand("ALTER SYSTEM CLEAR RENDER MEMORY;");
50  final JsonObject actualJsonObject =
51  gson.fromJson(result.plan_result, JsonObject.class);
52  assertEquals(expectedJsonObject, actualJsonObject);
53  }
JsonObject getJsonFromFile(final String fileName)
Definition: DDLTest.java:50
TPlanResult processDdlCommand(final String ddlCommand)
Definition: DDLTest.java:35

+ Here is the call graph for this function:

void com.mapd.parser.extension.ddl.InterruptCommandTest.killQuery ( ) throws Exception
inline

Definition at line 19 of file InterruptCommandTest.java.

References com.mapd.parser.extension.ddl.DDLTest.getJsonFromFile(), com.mapd.parser.extension.ddl.DDLTest.processDdlCommand(), and run_benchmark_import.result.

19  {
20  final JsonObject expectedJsonObject = getJsonFromFile("kill_query.json");
21  final TPlanResult result = processDdlCommand("KILL QUERY '123-a1b2';");
22  final JsonObject actualJsonObject =
23  gson.fromJson(result.plan_result, JsonObject.class);
24  assertEquals(expectedJsonObject, actualJsonObject);
25  }
JsonObject getJsonFromFile(final String fileName)
Definition: DDLTest.java:50
TPlanResult processDdlCommand(final String ddlCommand)
Definition: DDLTest.java:35

+ Here is the call graph for this function:


The documentation for this class was generated from the following file: