Search in sources :

Example 1 with HBaseConnector

use of io.hetu.core.plugin.hbase.connector.HBaseConnector 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)

Aggregations

TestingConnectorSession (io.hetu.core.plugin.hbase.client.TestingConnectorSession)1 HBaseConnector (io.hetu.core.plugin.hbase.connector.HBaseConnector)1 HBaseConnectorMetadataFactory (io.hetu.core.plugin.hbase.connector.HBaseConnectorMetadataFactory)1 TestHBaseClientConnection (io.hetu.core.plugin.hbase.connector.TestHBaseClientConnection)1 HBaseConnectorMetadata (io.hetu.core.plugin.hbase.metadata.HBaseConnectorMetadata)1 TestingHetuMetastore (io.hetu.core.plugin.hbase.metadata.TestingHetuMetastore)1 HBasePageSinkProvider (io.hetu.core.plugin.hbase.query.HBasePageSinkProvider)1 HBasePageSourceProvider (io.hetu.core.plugin.hbase.query.HBasePageSourceProvider)1 HBaseRecordSetProvider (io.hetu.core.plugin.hbase.query.HBaseRecordSetProvider)1 HBaseSplitManager (io.hetu.core.plugin.hbase.split.HBaseSplitManager)1 SchemaTableName (io.prestosql.spi.connector.SchemaTableName)1 BeforeClass (org.testng.annotations.BeforeClass)1