use of co.cask.cdap.data2.dataset2.lib.table.leveldb.LevelDBTableAdmin in project cdap by caskdata.
the class LevelDBStreamConsumerStateStoreFactory method getLevelDBTableAdmin.
private LevelDBTableAdmin getLevelDBTableAdmin(TableId tableId) throws IOException {
DatasetProperties props = TableProperties.builder().setColumnFamily("t").build();
LevelDBTableDefinition tableDefinition = new LevelDBTableDefinition("tableDefinition");
DatasetSpecification spec = tableDefinition.configure(tableId.getTableName(), props);
return new LevelDBTableAdmin(DatasetContext.from(tableId.getNamespace()), spec, tableService, cConf);
}
Aggregations