public abstract class AbstractDatasetRepository extends Object implements DatasetRepository
| Constructor and Description |
|---|
AbstractDatasetRepository() |
| Modifier and Type | Method and Description |
|---|---|
<E> Dataset<E> |
create(String namespace,
String name,
DatasetDescriptor descriptor)
/**
Create a
Dataset with the supplied descriptor. |
<E> Dataset<E> |
load(String namespace,
String name)
Get the latest version of a named
Dataset. |
<E> Dataset<E> |
update(String namespace,
String name,
DatasetDescriptor descriptor)
Update an existing
Dataset to reflect the supplied
descriptor. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, datasets, delete, exists, getUri, load, namespaces, updatepublic <E> Dataset<E> create(String namespace, String name, DatasetDescriptor descriptor)
DatasetRepositoryDataset with the supplied descriptor. Depending on
the underlying dataset storage, some schema types or configurations might
not be supported. If you supply an illegal schema, the implementing class
throws an exception. It is illegal to create more than one dataset with the
same name. If you provide a duplicate name, the implementing class throws
an exception.create in interface DatasetRepositorynamespace - A namespace, or logical group name, for the dataset.name - The fully qualified dataset namedescriptor - A descriptor that describes the schema and other
properties of the datasetpublic <E> Dataset<E> load(String namespace, String name)
DatasetRepositoryDataset. If no dataset with the
provided name exists, a DatasetNotFoundException is thrown.load in interface DatasetRepositorynamespace - A namespace, or logical group name, for the dataset.name - The name of the dataset.public <E> Dataset<E> update(String namespace, String name, DatasetDescriptor descriptor)
DatasetRepositoryDataset to reflect the supplied
descriptor. The common case is updating a dataset schema. Depending
on the underlying dataset storage, some updates might not be supported,
such as a change in format or partition strategy. Any attempt to make an
unsupported or incompatible update results in an exception being thrown
and no changes made to the dataset.update in interface DatasetRepositorynamespace - A namespace, or logical group name, for the dataset.name - The fully qualified dataset namedescriptor - A descriptor that describes the schema and other
properties of the datasetCopyright © 2013–2015. All rights reserved.