use of co.cask.cdap.data2.dataset2.lib.table.leveldb.LevelDBTableDefinition in project cdap by caskdata.
the class LevelDBTableModule method register.
@Override
public void register(DatasetDefinitionRegistry registry) {
registry.add(new LevelDBTableDefinition("table"));
registry.add(new LevelDBTableDefinition(Table.class.getName()));
}
use of co.cask.cdap.data2.dataset2.lib.table.leveldb.LevelDBTableDefinition 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