Definition at line 41 of file TestDBServer.java.
void com.mapd.parser.server.test.TestDBServer.closeDBConnection |
( |
ConnInfo |
conn | ) |
|
|
inlineprivate |
ConnInfo com.mapd.parser.server.test.TestDBServer.createDBConnection |
( |
| ) |
|
|
inlineprivate |
Definition at line 111 of file TestDBServer.java.
Referenced by com.mapd.parser.server.test.TestDBServer.testThreadedCall().
112 String session = null;
113 TTransport transport = null;
114 Heavy.Client client = null;
116 transport =
new TSocket(
"localhost", 6274);
118 TProtocol protocol =
new TBinaryProtocol(transport);
119 client =
new Heavy.Client(protocol);
120 session = client.connect(
"admin",
"HyperInteractive",
"omnisci");
121 }
catch (TException x) {
122 fail(
"Exception on create occurred " + x.toString());
124 return new ConnInfo(session, transport, client);
void com.mapd.parser.server.test.TestDBServer.executeQuery |
( |
ConnInfo |
conn, |
|
|
String |
query, |
|
|
int |
resultCount |
|
) |
| |
|
inlineprivate |
Definition at line 127 of file TestDBServer.java.
References run_benchmark_import.res.
Referenced by com.mapd.parser.server.test.TestDBServer.randomDBCall().
129 TQueryResult
res = conn.client.sql_execute(conn.session, query,
true, null, -1, -1);
130 if (resultCount != res.row_set.columns.get(0).nulls.size()) {
131 fail(
"result doesn't match " + resultCount
132 +
" != " + res.row_set.columns.get(0).nulls.size());
134 }
catch (TDBException x) {
135 fail(
"Exception on EXECUTE " + x.getError_msg());
136 }
catch (TException x) {
137 fail(
"Exception on EXECUTE " + x.toString());
void com.mapd.parser.server.test.TestDBServer.randomDBCall |
( |
ConnInfo |
conn | ) |
|
|
inlineprivate |
Definition at line 98 of file TestDBServer.java.
References com.mapd.parser.server.test.TestDBServer.executeQuery().
Referenced by com.mapd.parser.server.test.TestDBServer.testThreadedCall().
99 Random r =
new Random();
100 int aliasID = r.nextInt(100000) + 1000000;
101 int limit = r.nextInt(20) + 1;
107 "SELECT date_trunc(day, arr_timestamp) as key0,CASE when carrier_name IN ('Southwest Airlines','American Airlines','Skywest Airlines','American Eagle Airlines','US Airways') then carrier_name ELSE 'other' END as key1,COUNT(*) AS val FROM flights_2008_7m WHERE (arr_timestamp >= TIMESTAMP(0) '2008-01-01 00:57:00' AND arr_timestamp < TIMESTAMP(0) '2009-01-01 18:27:00') GROUP BY key0, key1 ORDER BY key0,key1",
void executeQuery(ConnInfo conn, String query, int resultCount)
void com.mapd.parser.server.test.TestDBServer.testThreadedCall |
( |
| ) |
|
|
inline |
volatile AssertionError com.mapd.parser.server.test.TestDBServer.ae |
|
private |
final Logger com.mapd.parser.server.test.TestDBServer.HEAVYDBLOGGER = LoggerFactory.getLogger(TestDBServer.class) |
|
staticprivate |
final int com.mapd.parser.server.test.TestDBServer.TEST_THREAD_COUNT = 2 |
|
staticprivate |
volatile boolean com.mapd.parser.server.test.TestDBServer.threadHadFailure = false |
|
private |
volatile int com.mapd.parser.server.test.TestDBServer.threadsRun = 0 |
|
private |
The documentation for this class was generated from the following file:
- /home/jenkins-slave/workspace/core-os-doxygen/java/calcite/src/test/java/com/heavydb/parser/server/test/TestDBServer.java