use of io.hetu.core.plugin.hbase.client.TestingConnectorSession in project hetu-core by openlookeng.
the class TestHBase method setUp.
/**
* setUp
*/
@BeforeClass
public void setUp() {
hCConf.setZkClientPort("2181");
hCConf.setZkQuorum("zk1");
hetuMetastore = new TestingHetuMetastore();
table = TestUtils.createHBaseTableHandle();
schemaTableName = new SchemaTableName("hbase", "test_table");
hconn = new TestHBaseClientConnection(hCConf, hetuMetastore.getHetuMetastore());
hconn.createConnection();
session = new TestingConnectorSession("root");
hcm = new HBaseConnectorMetadata(hconn);
hConnector = new HBaseConnector(new HBaseConnectorMetadataFactory(hconn, hCConf), new HBaseSplitManager(hconn), new HBasePageSinkProvider(hconn), new HBasePageSourceProvider(new HBaseRecordSetProvider(hconn), hconn), Optional.empty(), null);
}
use of io.hetu.core.plugin.hbase.client.TestingConnectorSession in project hetu-core by openlookeng.
the class TestQuery method setUp.
/**
* setUp
*/
@BeforeClass
public void setUp() {
hCConf.setZkClientPort("2181");
hCConf.setZkQuorum("zk1");
hetuMetastore = new TestingHetuMetastore();
hconn = new TestHBaseClientConnection(hCConf, hetuMetastore.getHetuMetastore());
hconn.createConnection();
session = new TestingConnectorSession("root");
split = new HBaseSplit("rowKey", TestUtils.createHBaseTableHandle(), new ArrayList<HostAddress>(1), "startrow", "endrow", new HashMap<>(), -1, false, null);
recordSet = new HBaseRecordSet(hconn, session, split, TestUtils.createHBaseTableHandle(), TestUtils.createColumnList());
}
use of io.hetu.core.plugin.hbase.client.TestingConnectorSession in project hetu-core by openlookeng.
the class TestHBaseConnector method setUp.
/**
* setUp
*/
@BeforeClass
public void setUp() {
hCConf.setZkClientPort("2181");
hCConf.setZkQuorum("zk1");
hetuMetastore = new TestingHetuMetastore();
schemaTableName = new SchemaTableName("hbase", "test_table");
hconn = new TestHBaseClientConnection(hCConf, hetuMetastore.getHetuMetastore());
hconn.createConnection();
session = new TestingConnectorSession("root");
hcm = new HBaseConnectorMetadata(hconn);
hConnector = new HBaseConnector(new HBaseConnectorMetadataFactory(hconn, hCConf), new HBaseSplitManager(hconn), new HBasePageSinkProvider(hconn), new HBasePageSourceProvider(new HBaseRecordSetProvider(hconn), hconn), Optional.empty(), new HBaseTableProperties());
}
Aggregations