Constructor and Description |
---|
Datasets() |
Modifier and Type | Method and Description |
---|---|
static <V extends View<GenericRecord>> |
create(String uri,
DatasetDescriptor descriptor)
Create a
Dataset for the given dataset or view URI string. |
static <E,V extends View<E>> |
create(String uri,
DatasetDescriptor descriptor,
Class<E> type)
Create a
Dataset for the given dataset or view URI string. |
static <V extends View<GenericRecord>> |
create(URI uri,
DatasetDescriptor descriptor)
Create a
Dataset for the given dataset or view URI. |
static <E,V extends View<E>> |
create(URI uri,
DatasetDescriptor descriptor,
Class<E> type)
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 <V extends View<GenericRecord>> |
load(String uriString)
|
static <E,V extends View<E>> |
load(String uriString,
Class<E> type)
|
static <V extends View<GenericRecord>> |
load(URI uri)
|
static <E,V extends View<E>> |
load(URI uri,
Class<E> type)
|
static <D extends Dataset<GenericRecord>> |
update(String uri,
DatasetDescriptor descriptor)
Update a
Dataset for the given dataset or view URI string. |
static <E,D extends Dataset<E>> |
update(String uri,
DatasetDescriptor descriptor,
Class<E> type)
Update a
Dataset for the given dataset or view URI string. |
static <D extends Dataset<GenericRecord>> |
update(URI uri,
DatasetDescriptor descriptor)
Update a
Dataset for the given dataset or view URI. |
static <E,D extends Dataset<E>> |
update(URI uri,
DatasetDescriptor descriptor,
Class<E> type)
Update a
Dataset for the given dataset or view URI. |
public static <E,V extends View<E>> V load(URI uri, Class<E> type)
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.type
- the Java type of the entities in the datasetView
for the given URI.public static <V extends View<GenericRecord>> 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:".
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, Class<E> type)
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.type
- the Java type of the entities in the datasetView
for the given URI.public static <V extends View<GenericRecord>> 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:".
V
- The type of View
expected.uriString
- a Dataset
or View
URI.View
for the given URI.public static <E,V extends View<E>> V create(URI uri, DatasetDescriptor descriptor, Class<E> type)
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.type
- the Java type of the entities in the datasetDataset
responsible for the given URI.public static <V extends View<GenericRecord>> 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:".
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, Class<E> type)
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.type
- the Java type of the entities in the datasetDataset
responsible for the given URI.public static <V extends View<GenericRecord>> 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:".
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, Class<E> type)
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.type
- the Java type of the entities in the datasetDataset
responsible for the given URI.public static <D extends Dataset<GenericRecord>> 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:".
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, Class<E> type)
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.type
- the Java type of the entities in the datasetDataset
responsible for the given URI.public static <D extends Dataset<GenericRecord>> 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:".
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 false
public 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 false
public 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
URIDatasetRepository
public 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 stringDatasetRepository
Copyright © 2013–2014. All rights reserved.