Search in sources :

Example 1 with CubeDatasetDefinition

use of co.cask.cdap.data2.dataset2.lib.cube.CubeDatasetDefinition in project cdap by caskdata.

the class CubeModule method register.

@Override
public void register(DatasetDefinitionRegistry registry) {
    DatasetDefinition<Table, ? extends DatasetAdmin> tableDef = registry.get("table");
    DatasetDefinition<MetricsTable, ? extends DatasetAdmin> metricsTableDef = registry.get(MetricsTable.class.getName());
    registry.add(new CubeDatasetDefinition(FULL_NAME, tableDef, metricsTableDef));
    registry.add(new CubeDatasetDefinition(SHORT_NAME, tableDef, metricsTableDef));
}
Also used : Table(co.cask.cdap.api.dataset.table.Table) CubeDatasetDefinition(co.cask.cdap.data2.dataset2.lib.cube.CubeDatasetDefinition)

Aggregations

Table (co.cask.cdap.api.dataset.table.Table)1 CubeDatasetDefinition (co.cask.cdap.data2.dataset2.lib.cube.CubeDatasetDefinition)1