Search in sources :

Example 1 with IndexedObjectStore

use of co.cask.cdap.api.dataset.lib.IndexedObjectStore in project cdap by caskdata.

the class CoreDatasetsModule method register.

@Override
public void register(DatasetDefinitionRegistry registry) {
    DatasetDefinition<Table, DatasetAdmin> tableDef = registry.get("table");
    DatasetDefinition<KeyValueTable, DatasetAdmin> kvTableDef = new KeyValueTableDefinition("keyValueTable", tableDef);
    registry.add(kvTableDef);
    registry.add(new KeyValueTableDefinition(KeyValueTable.class.getName(), tableDef));
    DatasetDefinition<ObjectStore, DatasetAdmin> objectStoreDef = new ObjectStoreDefinition("objectStore", kvTableDef);
    registry.add(new ObjectStoreDefinition("objectStore", kvTableDef));
    registry.add(new ObjectStoreDefinition(ObjectStore.class.getName(), kvTableDef));
    registry.add(new IndexedObjectStoreDefinition("indexedObjectStore", tableDef, objectStoreDef));
    registry.add(new IndexedObjectStoreDefinition(IndexedObjectStore.class.getName(), tableDef, objectStoreDef));
    registry.add(new IndexedTableDefinition("indexedTable", tableDef));
    registry.add(new IndexedTableDefinition(IndexedTable.class.getName(), tableDef));
    registry.add(new TimeseriesTableDefinition("timeseriesTable", tableDef));
    registry.add(new TimeseriesTableDefinition(TimeseriesTable.class.getName(), tableDef));
    registry.add(new CounterTimeseriesTableDefinition("counterTimeseriesTable", tableDef));
    registry.add(new CounterTimeseriesTableDefinition(CounterTimeseriesTable.class.getName(), tableDef));
    // in-memory table
    registry.add(new InMemoryTableDefinition("memoryTable"));
}
Also used : ObjectStore(co.cask.cdap.api.dataset.lib.ObjectStore) IndexedObjectStore(co.cask.cdap.api.dataset.lib.IndexedObjectStore) CounterTimeseriesTable(co.cask.cdap.api.dataset.lib.CounterTimeseriesTable) TimeseriesTable(co.cask.cdap.api.dataset.lib.TimeseriesTable) IndexedTable(co.cask.cdap.api.dataset.lib.IndexedTable) Table(co.cask.cdap.api.dataset.table.Table) KeyValueTable(co.cask.cdap.api.dataset.lib.KeyValueTable) DatasetAdmin(co.cask.cdap.api.dataset.DatasetAdmin) InMemoryTableDefinition(co.cask.cdap.data2.dataset2.lib.table.inmemory.InMemoryTableDefinition) CounterTimeseriesTableDefinition(co.cask.cdap.api.dataset.lib.CounterTimeseriesTableDefinition) IndexedTableDefinition(co.cask.cdap.api.dataset.lib.IndexedTableDefinition) KeyValueTable(co.cask.cdap.api.dataset.lib.KeyValueTable) IndexedObjectStoreDefinition(co.cask.cdap.api.dataset.lib.IndexedObjectStoreDefinition) KeyValueTableDefinition(co.cask.cdap.api.dataset.lib.KeyValueTableDefinition) IndexedObjectStoreDefinition(co.cask.cdap.api.dataset.lib.IndexedObjectStoreDefinition) TimeseriesTableDefinition(co.cask.cdap.api.dataset.lib.TimeseriesTableDefinition) CounterTimeseriesTableDefinition(co.cask.cdap.api.dataset.lib.CounterTimeseriesTableDefinition)

Aggregations

DatasetAdmin (co.cask.cdap.api.dataset.DatasetAdmin)1 CounterTimeseriesTable (co.cask.cdap.api.dataset.lib.CounterTimeseriesTable)1 CounterTimeseriesTableDefinition (co.cask.cdap.api.dataset.lib.CounterTimeseriesTableDefinition)1 IndexedObjectStore (co.cask.cdap.api.dataset.lib.IndexedObjectStore)1 IndexedObjectStoreDefinition (co.cask.cdap.api.dataset.lib.IndexedObjectStoreDefinition)1 IndexedTable (co.cask.cdap.api.dataset.lib.IndexedTable)1 IndexedTableDefinition (co.cask.cdap.api.dataset.lib.IndexedTableDefinition)1 KeyValueTable (co.cask.cdap.api.dataset.lib.KeyValueTable)1 KeyValueTableDefinition (co.cask.cdap.api.dataset.lib.KeyValueTableDefinition)1 ObjectStore (co.cask.cdap.api.dataset.lib.ObjectStore)1 TimeseriesTable (co.cask.cdap.api.dataset.lib.TimeseriesTable)1 TimeseriesTableDefinition (co.cask.cdap.api.dataset.lib.TimeseriesTableDefinition)1 Table (co.cask.cdap.api.dataset.table.Table)1 InMemoryTableDefinition (co.cask.cdap.data2.dataset2.lib.table.inmemory.InMemoryTableDefinition)1