Search in sources :

Example 1 with TestingHetuMetastore

use of io.hetu.core.plugin.hbase.metadata.TestingHetuMetastore 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);
}
Also used : HBasePageSinkProvider(io.hetu.core.plugin.hbase.query.HBasePageSinkProvider) TestingHetuMetastore(io.hetu.core.plugin.hbase.metadata.TestingHetuMetastore) TestHBaseClientConnection(io.hetu.core.plugin.hbase.connector.TestHBaseClientConnection) HBaseRecordSetProvider(io.hetu.core.plugin.hbase.query.HBaseRecordSetProvider) TestingConnectorSession(io.hetu.core.plugin.hbase.client.TestingConnectorSession) HBaseConnectorMetadataFactory(io.hetu.core.plugin.hbase.connector.HBaseConnectorMetadataFactory) HBaseSplitManager(io.hetu.core.plugin.hbase.split.HBaseSplitManager) HBasePageSourceProvider(io.hetu.core.plugin.hbase.query.HBasePageSourceProvider) SchemaTableName(io.prestosql.spi.connector.SchemaTableName) HBaseConnectorMetadata(io.hetu.core.plugin.hbase.metadata.HBaseConnectorMetadata) HBaseConnector(io.hetu.core.plugin.hbase.connector.HBaseConnector) BeforeClass(org.testng.annotations.BeforeClass)

Example 2 with TestingHetuMetastore

use of io.hetu.core.plugin.hbase.metadata.TestingHetuMetastore 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());
}
Also used : HBaseRecordSet(io.hetu.core.plugin.hbase.query.HBaseRecordSet) TestingHetuMetastore(io.hetu.core.plugin.hbase.metadata.TestingHetuMetastore) TestHBaseClientConnection(io.hetu.core.plugin.hbase.connector.TestHBaseClientConnection) HashMap(java.util.HashMap) TestingConnectorSession(io.hetu.core.plugin.hbase.client.TestingConnectorSession) ArrayList(java.util.ArrayList) HBaseSplit(io.hetu.core.plugin.hbase.split.HBaseSplit) BeforeClass(org.testng.annotations.BeforeClass)

Example 3 with TestingHetuMetastore

use of io.hetu.core.plugin.hbase.metadata.TestingHetuMetastore in project hetu-core by openlookeng.

the class TestHbaseSplitManager method setUp.

/**
 * setUp
 */
@BeforeClass
public void setUp() {
    hCConf.setZkClientPort("2181");
    hCConf.setZkQuorum("zk1");
    hetuMetastore = new TestingHetuMetastore();
    hconn = new TestHBaseClientConnection(hCConf, hetuMetastore.getHetuMetastore());
    hconn.createConnection();
    hsm = new HBaseSplitManager(hconn);
}
Also used : TestingHetuMetastore(io.hetu.core.plugin.hbase.metadata.TestingHetuMetastore) TestHBaseClientConnection(io.hetu.core.plugin.hbase.connector.TestHBaseClientConnection) BeforeClass(org.testng.annotations.BeforeClass)

Example 4 with TestingHetuMetastore

use of io.hetu.core.plugin.hbase.metadata.TestingHetuMetastore 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());
}
Also used : HBasePageSinkProvider(io.hetu.core.plugin.hbase.query.HBasePageSinkProvider) TestingHetuMetastore(io.hetu.core.plugin.hbase.metadata.TestingHetuMetastore) HBaseRecordSetProvider(io.hetu.core.plugin.hbase.query.HBaseRecordSetProvider) HBaseTableProperties(io.hetu.core.plugin.hbase.conf.HBaseTableProperties) TestingConnectorSession(io.hetu.core.plugin.hbase.client.TestingConnectorSession) HBaseSplitManager(io.hetu.core.plugin.hbase.split.HBaseSplitManager) HBasePageSourceProvider(io.hetu.core.plugin.hbase.query.HBasePageSourceProvider) SchemaTableName(io.prestosql.spi.connector.SchemaTableName) HBaseConnectorMetadata(io.hetu.core.plugin.hbase.metadata.HBaseConnectorMetadata) BeforeClass(org.testng.annotations.BeforeClass)

Aggregations

TestingHetuMetastore (io.hetu.core.plugin.hbase.metadata.TestingHetuMetastore)4 BeforeClass (org.testng.annotations.BeforeClass)4 TestingConnectorSession (io.hetu.core.plugin.hbase.client.TestingConnectorSession)3 TestHBaseClientConnection (io.hetu.core.plugin.hbase.connector.TestHBaseClientConnection)3 HBaseConnectorMetadata (io.hetu.core.plugin.hbase.metadata.HBaseConnectorMetadata)2 HBasePageSinkProvider (io.hetu.core.plugin.hbase.query.HBasePageSinkProvider)2 HBasePageSourceProvider (io.hetu.core.plugin.hbase.query.HBasePageSourceProvider)2 HBaseRecordSetProvider (io.hetu.core.plugin.hbase.query.HBaseRecordSetProvider)2 HBaseSplitManager (io.hetu.core.plugin.hbase.split.HBaseSplitManager)2 SchemaTableName (io.prestosql.spi.connector.SchemaTableName)2 HBaseTableProperties (io.hetu.core.plugin.hbase.conf.HBaseTableProperties)1 HBaseConnector (io.hetu.core.plugin.hbase.connector.HBaseConnector)1 HBaseConnectorMetadataFactory (io.hetu.core.plugin.hbase.connector.HBaseConnectorMetadataFactory)1 HBaseRecordSet (io.hetu.core.plugin.hbase.query.HBaseRecordSet)1 HBaseSplit (io.hetu.core.plugin.hbase.split.HBaseSplit)1 ArrayList (java.util.ArrayList)1 HashMap (java.util.HashMap)1