public interface DatasetConfigurer
Modifier and Type | Method and Description |
---|---|
void |
addDatasetModule(String moduleName,
Class<? extends DatasetModule> moduleClass)
Adds a
DatasetModule to be deployed automatically (if absent in the CDAP namespace) during application
deployment. |
void |
addDatasetType(Class<? extends Dataset> datasetClass)
Adds a
DatasetModule to be deployed automatically during application
deployment, using Dataset as a base for the DatasetModule . |
void |
createDataset(String datasetName,
Class<? extends Dataset> datasetClass)
Deploys a Dataset type using the datasetClass parameter (see
addDatasetType(Class) ), then
adds a Dataset instance, if absent in the CDAP namespace, or if the Dataset instance already exists,
updates the existing instance with empty properties. |
void |
createDataset(String datasetName,
Class<? extends Dataset> datasetClass,
DatasetProperties props)
Deploys a Dataset type using the datasetClass parameter (see
addDatasetType(Class) ), then
adds a Dataset instance, if absent in the CDAP namespace, or if the Dataset instance already exists,
updates the existing instance with the new properties. |
void |
createDataset(String datasetName,
String typeName)
Adds a Dataset instance with
DatasetProperties.EMPTY created automatically if absent in the CDAP namespace. |
void |
createDataset(String datasetName,
String typeName,
DatasetProperties properties)
Adds a Dataset instance, created automatically if absent in the CDAP namespace.
|
@Beta void addDatasetModule(String moduleName, Class<? extends DatasetModule> moduleClass)
DatasetModule
to be deployed automatically (if absent in the CDAP namespace) during application
deployment.moduleName
- Name of the module to deploymoduleClass
- Class of the module@Beta void addDatasetType(Class<? extends Dataset> datasetClass)
DatasetModule
to be deployed automatically during application
deployment, using Dataset
as a base for the DatasetModule
.
The module will have a single dataset type identical to the name of the class in the datasetClass parameter.datasetClass
- Class of the dataset; module name will be the same as the class in the parameter@Beta void createDataset(String datasetName, String typeName, DatasetProperties properties)
DatasetDefinition
for details.datasetName
- name of the dataset instancetypeName
- name of the dataset typeproperties
- dataset instance propertiesvoid createDataset(String datasetName, String typeName)
DatasetProperties.EMPTY
created automatically if absent in the CDAP namespace.
If the Dataset instance already exists, this updates the existing instance with the new properties.datasetName
- name of the dataset instancetypeName
- name of the dataset typevoid createDataset(String datasetName, Class<? extends Dataset> datasetClass, DatasetProperties props)
addDatasetType(Class)
), then
adds a Dataset instance, if absent in the CDAP namespace, or if the Dataset instance already exists,
updates the existing instance with the new properties.datasetName
- dataset instance namedatasetClass
- dataset class to create the Dataset type fromprops
- dataset instance propertiesvoid createDataset(String datasetName, Class<? extends Dataset> datasetClass)
addDatasetType(Class)
), then
adds a Dataset instance, if absent in the CDAP namespace, or if the Dataset instance already exists,
updates the existing instance with empty properties.datasetName
- dataset instance namedatasetClass
- dataset class to create the Dataset type fromCopyright © 2022 Cask Data, Inc. Licensed under the Apache License, Version 2.0.