This commit is contained in:
温少
2012-05-19 18:07:23 +08:00
parent 36b7a7a980
commit 41ee5b99e5
15 changed files with 35 additions and 35 deletions
@@ -10,7 +10,7 @@ import junit.framework.TestCase;
public class HBaseDriverInsertTest extends TestCase {
public void test_select_0() throws Exception {
HBaseDriver driver = new HBaseDriver();
HDriver driver = new HDriver();
Connection conn = driver.connect("jdbc:druid-hbase:10.20.153.63", new Properties());
for (int i = 0; i < 10; ++i) {
@@ -10,7 +10,7 @@ import junit.framework.TestCase;
public class HBaseDriverTest extends TestCase {
public void test_select_0 () throws Exception {
HBaseDriver driver = new HBaseDriver();
HDriver driver = new HDriver();
Connection conn = driver.connect("jdbc:druid-hbase:10.20.153.63", new Properties());
PreparedStatement stmt = conn.prepareStatement("SELECT id, name, gender, salary FROM test_user where id >= 3 and id <= ?");
@@ -10,7 +10,7 @@ import junit.framework.TestCase;
public class HBaseDriverTest_getIndex extends TestCase {
public void test_select_0 () throws Exception {
HBaseDriver driver = new HBaseDriver();
HDriver driver = new HDriver();
Connection conn = driver.connect("jdbc:druid-hbase:10.20.153.63", new Properties());
PreparedStatement stmt = conn.prepareStatement("SELECT id, name, gender, salary FROM test_user where id >= 3 and id <= ?");
@@ -10,7 +10,7 @@ import junit.framework.TestCase;
public class HBaseDriverTest_notRowFilter extends TestCase {
public void test_select_0 () throws Exception {
HBaseDriver driver = new HBaseDriver();
HDriver driver = new HDriver();
Connection conn = driver.connect("jdbc:druid-hbase:10.20.153.63", new Properties());
PreparedStatement stmt = conn.prepareStatement("SELECT id, name, gender, salary FROM test_user where name <= ?");