@BeforeClass public static void beforeClass() throws HBqlException { connection = HConnectionManager.newConnection(); System.out.println( connection.execute("disable table delete_test if tableexists('delete_test')")); System.out.println(connection.execute("drop table delete_test if tableexists('delete_test')")); System.out.println(connection.execute("create table delete_test (f1(), f2(), f3())")); connection.execute( "CREATE TEMP MAPPING delete_test " + "(" + "keyval key, " + "f1 (" + " val1 string alias val1, " + " val2 string alias val2, " + " val3 string alias val3 " + "), " + "f2 (" + " val1 string alias val11, " + " val2 string alias val12, " + " val3 string alias val13 " + "), " + "f3 (" + " val1 string alias val21, " + " val2 string alias val22, " + " val3 string alias val23 " + "))"); insertRecords(connection, count, "Batch 1"); insertRecords(connection, count, "Batch 2"); insertRecords(connection, count, "Batch 3"); }
@BeforeClass public static void beforeClass() throws HBqlException { connection = HConnectionManager.newConnection(); setupMapping(connection); }