|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kitesdk.data.Datasets
public class Datasets
Convenience methods for working with Dataset instances.
| Constructor Summary | |
|---|---|
Datasets()
|
|
| Method Summary | ||
|---|---|---|
static
|
create(String uri,
DatasetDescriptor descriptor)
Create a Dataset for the given dataset or view URI string. |
|
static
|
create(URI uri,
DatasetDescriptor descriptor)
Create a Dataset for the given dataset or view URI. |
|
static boolean |
delete(String uri)
Delete a Dataset identified by the given dataset URI string. |
|
static boolean |
delete(URI uri)
Delete a Dataset identified by the given dataset URI. |
|
static boolean |
exists(String uri)
Check if a Dataset identified by the given URI string exists. |
|
static boolean |
exists(URI uri)
Check if a Dataset identified by the given URI exists. |
|
static Collection<URI> |
list(String uri)
List the Dataset URIs in the repository identified by the URI string |
|
static Collection<URI> |
list(URI uri)
List the Dataset URIs in the repository identified by the URI |
|
static
|
load(String uriString)
Load a Dataset or View for the given URI string. |
|
static
|
load(URI uri)
Load a Dataset or View for the given URI. |
|
static
|
repositoryFor(String uriString)
Load a DatasetRepository for the given dataset or view URI string. |
|
static
|
repositoryFor(URI uri)
Load a DatasetRepository for the given dataset or view URI. |
|
static
|
update(String uri,
DatasetDescriptor descriptor)
Create a Dataset for the given dataset or view URI string. |
|
static
|
update(URI uri,
DatasetDescriptor descriptor)
Create a Dataset for the given dataset or view URI. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Datasets()
| Method Detail |
|---|
public static <E,V extends View<E>> V load(URI uri)
Dataset or View for the given URI.
If the URI is a dataset URI, the unfiltered Dataset will be returned.
URI formats are defined by Dataset implementations, but must begin
with "dataset:" or "view:".
E - The type of entities stored in the Dataset.V - The type of View expected.uri - a Dataset or View URI.
View for the given URI.public static <E,V extends View<E>> V load(String uriString)
Dataset or View for the given URI string.
If the URI is a dataset URI, the unfiltered Dataset will be returned.
URI formats are defined by Dataset implementations, but must begin
with "dataset:" or "view:".
E - The type of entities stored in the Dataset.V - The type of View expected.uriString - a Dataset or View URI.
View for the given URI.public static <R extends DatasetRepository> R repositoryFor(URI uri)
DatasetRepository for the given dataset or view URI.
URI formats are defined by Dataset implementations, but must begin
with "dataset:" or "view:".
R - The type of DatasetRepository expected.uri - a Dataset or View URI.
DatasetRepository responsible for the given URI.public static <R extends DatasetRepository> R repositoryFor(String uriString)
DatasetRepository for the given dataset or view URI string.
URI formats are defined by Dataset implementations, but must begin
with "dataset:" or "view:".
R - The type of DatasetRepository expected.uriString - a Dataset or View URI.
DatasetRepository responsible for the given URI.
public static <E,V extends View<E>> V create(URI uri,
DatasetDescriptor descriptor)
Dataset for the given dataset or view URI.
URI formats are defined by Dataset implementations, but must begin
with "dataset:" or "view:".
E - The type of entities stored in the Dataset.V - The type of Dataset or View expected.uri - a Dataset or View URI.
Dataset responsible for the given URI.
public static <E,V extends View<E>> V create(String uri,
DatasetDescriptor descriptor)
Dataset for the given dataset or view URI string.
URI formats are defined by Dataset implementations, but must begin
with "dataset:" or "view:".
E - The type of entities stored in the Dataset.V - The type of Dataset or View expected.uri - a Dataset or View URI string.
Dataset responsible for the given URI.
public static <E,D extends Dataset<E>> D update(URI uri,
DatasetDescriptor descriptor)
Dataset for the given dataset or view URI.
URI formats are defined by Dataset implementations, but must begin
with "dataset:" or "view:".
E - The type of entities stored in the Dataset.D - The type of Dataset expected.uri - a Dataset or View URI.
Dataset responsible for the given URI.
public static <E,D extends Dataset<E>> D update(String uri,
DatasetDescriptor descriptor)
Dataset for the given dataset or view URI string.
URI formats are defined by Dataset implementations, but must begin
with "dataset:" or "view:".
E - The type of entities stored in the Dataset.D - The type of Dataset expected.uri - a Dataset or View URI string.
Dataset responsible for the given URI.public static boolean delete(URI uri)
Dataset identified by the given dataset URI.
URI formats are defined by Dataset implementations, but must begin
with "dataset:".
uri - a Dataset URI.
true if any data or metadata was removed, or falsepublic static boolean delete(String uri)
Dataset identified by the given dataset URI string.
URI formats are defined by Dataset implementations, but must begin
with "dataset:".
uri - a Dataset URI string.
true if any data or metadata was removed, or falsepublic static boolean exists(URI uri)
Dataset identified by the given URI exists.
URI formats are defined by Dataset implementations, but must begin
with "dataset:".
uri - a Dataset URI.
true if the dataset exists, false otherwisepublic static boolean exists(String uri)
Dataset identified by the given URI string exists.
URI formats are defined by Dataset implementations, but must begin
with "dataset:".
uri - a Dataset URI string.
true if the dataset exists, false otherwisepublic static Collection<URI> list(URI uri)
Dataset URIs in the repository identified by the URI
URI formats are defined by Dataset implementations. The repository
URIs passed to this method must begin with "repo:".
uri - a DatasetRepository URI
DatasetRepositorypublic static Collection<URI> list(String uri)
Dataset URIs in the repository identified by the URI string
URI formats are defined by Dataset implementations. The repository
URIs passed to this method must begin with "repo:".
uri - a DatasetRepository URI string
DatasetRepository
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||