Search in sources :

Example 1 with HBasePageSourceProvider

use of io.hetu.core.plugin.hbase.query.HBasePageSourceProvider 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 HBasePageSourceProvider

use of io.hetu.core.plugin.hbase.query.HBasePageSourceProvider 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

TestingConnectorSession (io.hetu.core.plugin.hbase.client.TestingConnectorSession)2 HBaseConnectorMetadata (io.hetu.core.plugin.hbase.metadata.HBaseConnectorMetadata)2 TestingHetuMetastore (io.hetu.core.plugin.hbase.metadata.TestingHetuMetastore)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 BeforeClass (org.testng.annotations.BeforeClass)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 TestHBaseClientConnection (io.hetu.core.plugin.hbase.connector.TestHBaseClientConnection)1