finalStringsql="create table if not exists "+dbName+"."+stbName+i+" (ts timestamp, temperature float, humidity int, name BINARY("+(i%73+10)+")) TAGS (tag1 INT)";
execute(sql);
}
}
privatevoidcreateTable(){
for(inti=0;i<numOfSTb;i++){
for(intj=0;j<numOfTb;j++){
finalStringsql="create table if not exists "+dbName+"."+tbName+i+"_"+j+" USING "+stbName+i+" TAGS("+j+")";
execute(sql);
}
}
}
privatevoidclose()throwsSQLException{
if(connection!=null){
this.connection.close();
System.out.println("connection closed.");
}
}
privatevoidselectMultiThreading(){
inta=numOfSTb/numOfThreads;
if(a<1){
numOfThreads=numOfSTb;
...
...
@@ -60,11 +103,6 @@ public class InvalidResultSetPointerTest {
ie.printStackTrace();
}
}
if(connection!=null){
this.connection.close();
System.out.println("connection closed.");
}
}
@BeforeClass
...
...
@@ -145,8 +183,6 @@ public class InvalidResultSetPointerTest {