Modifier and Type | Method and Description |
---|---|
void |
createDataset(String name,
String type,
DatasetProperties properties)
Create a new dataset instance.
|
boolean |
datasetExists(String name)
Check whether a dataset exists in the current namespace.
|
void |
dropDataset(String name)
Delete a dataset instance.
|
DatasetProperties |
getDatasetProperties(String name)
Get the properties with which a dataset was created or updated.
|
String |
getDatasetType(String name)
Get the type of a dataset.
|
void |
truncateDataset(String name)
Truncate a dataset, that is, delete all its data.
|
void |
updateDataset(String name,
DatasetProperties properties)
Update an existing dataset with new properties.
|
boolean datasetExists(String name) throws DatasetManagementException
name
- the name of the datasetDatasetManagementException
- for any issues encountered in the dataset systemString getDatasetType(String name) throws DatasetManagementException
name
- the name of a datasetInstanceNotFoundException
- if the dataset does not existDatasetManagementException
- for any issues encountered in the dataset systemDatasetProperties getDatasetProperties(String name) throws DatasetManagementException
name
- the name of the datasetInstanceNotFoundException
- if the dataset does not existDatasetManagementException
- for any issues encountered in the dataset systemvoid createDataset(String name, String type, DatasetProperties properties) throws DatasetManagementException
name
- the name of the new datasettype
- the type of the dataset to createproperties
- the properties for the new datasetInstanceConflictException
- if the dataset already existsDatasetManagementException
- for any issues encountered in the dataset system, or if
the dataset type's create method fails.void updateDataset(String name, DatasetProperties properties) throws DatasetManagementException
name
- the name of the datasetproperties
- the new properties for the datasetInstanceNotFoundException
- if the dataset does not existDatasetManagementException
- for any issues encountered in the dataset system, or if
the dataset type's update method fails.void dropDataset(String name) throws DatasetManagementException
name
- the name of the datasetInstanceNotFoundException
- if the dataset does not existDatasetManagementException
- for any issues encountered in the dataset system, or if
the dataset type's drop method fails.void truncateDataset(String name) throws DatasetManagementException
name
- the name of the datasetInstanceNotFoundException
- if the dataset does not existDatasetManagementException
- for any issues encountered in the dataset system, or if
the dataset type's truncate method fails.Copyright © 2023 Cask Data, Inc. Licensed under the Apache License, Version 2.0.