|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
E - The type of entities stored in this Dataset.@Immutable public interface Dataset<E>
A logical representation of a set of data entities.
Logically, all datasets have two generic properties: a name, and a descriptor
that holds information such as the dataset's schema and its partitioning
information. Concrete implementations of Dataset can support
additional properties, mandatory or otherwise, as needed. Datasets
are not normally instantiated directly, but managed by a repository (also
implementation-specific).
Implementations of Dataset are immutable.
View,
DatasetRepository,
DatasetWriter,
DatasetReader,
PartitionStrategy,
DatasetDescriptor,
Schema| Method Summary | |
|---|---|
void |
dropPartition(PartitionKey key)
Drop a partition for a PartitionKey. |
DatasetDescriptor |
getDescriptor()
Get the DatasetDescriptor associated with this dataset. |
String |
getName()
Get the name of a Dataset. |
Dataset<E> |
getPartition(PartitionKey key,
boolean autoCreate)
Get a partition for a PartitionKey, optionally creating the
partition if it doesn't already exist. |
Iterable<Dataset<E>> |
getPartitions()
Return partitions, if this dataset is partitioned. |
URI |
getUri()
Return a URI for this Dataset. |
| Methods inherited from interface org.kitesdk.data.RefinableView |
|---|
from, fromAfter, to, toBefore, with |
| Methods inherited from interface org.kitesdk.data.View |
|---|
deleteAll, getDataset, includes, newReader, newWriter |
| Method Detail |
|---|
String getName()
Dataset. No guarantees are made about the format
of this name.
DatasetDescriptor getDescriptor()
DatasetDescriptor associated with this dataset.
Dataset<E> getPartition(PartitionKey key,
boolean autoCreate)
PartitionKey, optionally creating the
partition if it doesn't already exist. You can obtain the
PartitionKey using
PartitionStrategy.partitionKey(Object...) or
PartitionStrategy.partitionKeyForEntity(Object).
key - The key used to look up the partition.autoCreate - If true, automatically creates the partition if it
doesn't exist.
DatasetExceptionvoid dropPartition(PartitionKey key)
PartitionKey. Dropping a partition that
doesn't exist results in a DatasetException being thrown.
key - The key used to look up the partition.
DatasetExceptionIterable<Dataset<E>> getPartitions()
Return partitions, if this dataset is partitioned.
Note that, depending on the implementation, the returned iterable can hold system resources until exhausted and/or finalized.
DatasetExceptionURI getUri()
URI for this Dataset.
The returned URI should load a copy of this dataset when passed to
Datasets.load(java.net.URI).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||