Search in sources :

Example 1 with LevelDBTableService

use of co.cask.cdap.data2.dataset2.lib.table.leveldb.LevelDBTableService in project cdap by caskdata.

the class LevelDBKVTableTest method init.

@BeforeClass
public static void init() throws Exception {
    CConfiguration conf = CConfiguration.create();
    conf.set(Constants.CFG_LOCAL_DATA_DIR, tmpFolder.newFolder().getAbsolutePath());
    conf.set(Constants.CFG_DATA_LEVELDB_DIR, tmpFolder.newFolder().getAbsolutePath());
    service = new LevelDBTableService();
    service.setConfiguration(conf);
}
Also used : LevelDBTableService(co.cask.cdap.data2.dataset2.lib.table.leveldb.LevelDBTableService) CConfiguration(co.cask.cdap.common.conf.CConfiguration) BeforeClass(org.junit.BeforeClass)

Aggregations

CConfiguration (co.cask.cdap.common.conf.CConfiguration)1 LevelDBTableService (co.cask.cdap.data2.dataset2.lib.table.leveldb.LevelDBTableService)1 BeforeClass (org.junit.BeforeClass)1