OmniSciDB  471d68cefb
 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 10 of file InterruptCommandTest.java.

Constructor & Destructor Documentation

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

Definition at line 11 of file InterruptCommandTest.java.

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

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

Member Function Documentation

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

Definition at line 27 of file InterruptCommandTest.java.

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

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

+ Here is the call graph for this function:

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

Definition at line 36 of file InterruptCommandTest.java.

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

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

+ Here is the call graph for this function:

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

Definition at line 45 of file InterruptCommandTest.java.

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

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

+ Here is the call graph for this function:

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

Definition at line 18 of file InterruptCommandTest.java.

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

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

+ Here is the call graph for this function:


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