D - defines data operations that can be performed on this dataset instanceA - defines administrative operations that can be performed on this dataset instance@Beta public interface DatasetDefinition<D extends Dataset,A extends DatasetAdmin>
configure(String, DatasetProperties) method
DatasetAdmin via
getAdmin(DatasetContext, DatasetSpecification, ClassLoader) method
Dataset via
getDataset(DatasetContext, DatasetSpecification, Map, ClassLoader) method
| Modifier and Type | Field and Description |
|---|---|
static Map<String,String> |
NO_ARGUMENTS
Convenience constant for passing in no arguments.
|
| Modifier and Type | Method and Description |
|---|---|
DatasetSpecification |
configure(String instanceName,
DatasetProperties properties)
Configures new instance of the dataset.
|
A |
getAdmin(DatasetContext datasetContext,
DatasetSpecification spec,
ClassLoader classLoader)
Provides dataset admin to be used to perform administrative operations on the dataset instance defined by passed
DatasetSpecification. |
D |
getDataset(DatasetContext datasetContext,
DatasetSpecification spec,
Map<String,String> arguments,
ClassLoader classLoader)
Provides dataset to be used to perform data operations on the dataset instance data defined by passed
DatasetSpecification and the given arguments. |
String |
getName() |
String getName()
DatasetSpecification configure(String instanceName, DatasetProperties properties)
instanceName - name of the instanceproperties - instance configuration propertiesDatasetSpecification that fully describes dataset instance.
The DatasetSpecification can be used to create DatasetAdmin and Dataset to perform
administrative and data operations respectively, see getAdmin(DatasetContext,
DatasetSpecification, ClassLoader)
and getDataset(DatasetContext, DatasetSpecification, Map, ClassLoader).A getAdmin(DatasetContext datasetContext, DatasetSpecification spec, ClassLoader classLoader) throws IOException
DatasetSpecification.datasetContext - context for the datasetspec - specification of the dataset instance.classLoader - classloader to use when executing admin operationsIOExceptionD getDataset(DatasetContext datasetContext, DatasetSpecification spec, Map<String,String> arguments, ClassLoader classLoader) throws IOException
DatasetSpecification and the given arguments.datasetContext - context for the datasetspec - specification of the dataset instance.arguments - arguments for this instance of the dataset. Should not be null - provide an empty map for no
arguments.classLoader - classloader to use when executing dataset operationsIOExceptionCopyright © 2022 Cask Data, Inc. Licensed under the Apache License, Version 2.0.