|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Immutable public interface RandomAccessDatasetRepository
A logical repository (storage system) of RandomAccessDatasets.
RandomAccessDatasetRepositorys are DatasetRepositorys that
return the Dataset sub-interface RandomAccessDataset from the
load, create, and update methods. See DatasetRepository for more
details.
Implementations of DatasetRepository are immutable.
RandomAccessDataset,
DatasetRepository,
DatasetDescriptor| Method Summary | ||
|---|---|---|
|
create(String name,
DatasetDescriptor descriptor)
Create a Dataset with the supplied descriptor. |
|
|
load(String name)
Get the latest version of a named Dataset. |
|
|
update(String name,
DatasetDescriptor descriptor)
Update an existing Dataset to reflect the supplied descriptor. |
|
| Methods inherited from interface org.kitesdk.data.DatasetRepository |
|---|
delete, exists, list |
| Method Detail |
|---|
<E> RandomAccessDataset<E> load(String name)
DatasetRepositoryDataset. If no dataset with the
provided name exists, a DatasetNotFoundException is thrown.
load in interface DatasetRepositoryname - The name of the dataset.
<E> RandomAccessDataset<E> create(String name,
DatasetDescriptor descriptor)
DatasetRepositoryDataset with the supplied descriptor. Depending on
the underlying dataset storage, some schemas types or configurations may
not be supported. If an illegal schema is supplied, an exception will be
thrown by the implementing class. It is illegal to create a more than one
dataset with a given name. If a duplicate name is provided, an exception is
thrown.
create in interface DatasetRepositoryname - The fully qualified dataset namedescriptor - A descriptor that describes the schema and other
properties of the dataset
<E> RandomAccessDataset<E> update(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 may not be supported,
such as a change in format or partition strategy.
Any attempt to make an unsupported or incompatible update will result in an
exception being thrown and no change being made to the dataset.
update in interface DatasetRepositoryname - The fully qualified dataset namedescriptor - A descriptor that describes the schema and other properties of the
dataset
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||