public class DatasetTypeMDS extends MetadataStoreDataset
MetadataStoreDataset.KeyValue<T>| Modifier and Type | Field and Description |
|---|---|
static String |
MODULES_PREFIX
Prefix for rows containing module info.
|
| Constructor and Description |
|---|
DatasetTypeMDS(co.cask.cdap.api.dataset.DatasetSpecification spec,
co.cask.cdap.api.dataset.table.Table table) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteModule(Id.DatasetModule datasetModuleId) |
void |
deleteModules(Id.Namespace namespaceId) |
DatasetModuleMeta |
getModule(Id.DatasetModule datasetModuleId)
Retrieves a module from the given namespace
|
DatasetModuleMeta |
getModuleByType(Id.DatasetType datasetTypeId) |
Collection<DatasetModuleMeta> |
getModules(Id.Namespace namespaceId) |
DatasetModuleMeta |
getModuleWithFallback(Id.DatasetModule datasetModuleId)
Tries to find a module in the specified namespace first.
|
DatasetTypeMeta |
getType(Id.DatasetType datasetTypeId) |
Collection<DatasetTypeMeta> |
getTypes(Id.Namespace namespaceId) |
void |
writeModule(Id.Namespace namespaceId,
DatasetModuleMeta moduleMeta) |
deleteAll, deserialize, exists, get, getFirst, list, list, list, listKV, listKV, listKV, scan, serialize, writepublic static final String MODULES_PREFIX
public DatasetTypeMDS(co.cask.cdap.api.dataset.DatasetSpecification spec,
co.cask.cdap.api.dataset.table.Table table)
@Nullable public DatasetModuleMeta getModule(Id.DatasetModule datasetModuleId)
datasetModuleId - the Id.DatasetModule for the module to retrieveDatasetModuleMeta for the module if found in the specified namespace, null otherwise@Nullable public DatasetModuleMeta getModuleWithFallback(Id.DatasetModule datasetModuleId)
datasetModuleId - Id.DatasetModule for the module to retrieveDatasetModuleMeta for the module if found either in the specified namespace or in the system
namespace, null otherwise@Nullable public DatasetModuleMeta getModuleByType(Id.DatasetType datasetTypeId)
public DatasetTypeMeta getType(Id.DatasetType datasetTypeId)
public Collection<DatasetModuleMeta> getModules(Id.Namespace namespaceId)
public Collection<DatasetTypeMeta> getTypes(Id.Namespace namespaceId)
public void writeModule(Id.Namespace namespaceId, DatasetModuleMeta moduleMeta)
public void deleteModule(Id.DatasetModule datasetModuleId)
public void deleteModules(Id.Namespace namespaceId)
Copyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.