|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DatasetOperations
Interface specifying a basic set of Dataset operations against a specific
DatasetRepository. Implemented by DatasetTemplate.
| Method Summary | ||
|---|---|---|
void |
execute(DatasetRepositoryCallback callback)
Execute a callback for the DatasetRepository |
|
|
getDatasetName(Class<T> clazz)
Get the dataset name to be used for the given class |
|
|
read(Class<T> targetClass)
Read all records in the dataset and return as a collection. |
|
|
read(Class<T> targetClass,
RecordCallback<T> callback)
Read all records in the dataset and call the provided callback for each record. |
|
void |
write(Collection<?> records)
Write all records provided in the record collection without partitioning |
|
void |
write(Collection<?> records,
org.kitesdk.data.PartitionStrategy partitionStrategy)
Write all records provided in the record collection using the provided partition strategy |
|
| Method Detail |
|---|
<T> void read(Class<T> targetClass,
RecordCallback<T> callback)
targetClass - the class that is stored in the datasetcallback - the callback to be called for each record<T> Collection<T> read(Class<T> targetClass)
targetClass - the class that is stored in the dataset
void write(Collection<?> records,
org.kitesdk.data.PartitionStrategy partitionStrategy)
records - the records to writepartitionStrategy - the partition strategyvoid write(Collection<?> records)
records - the records to writevoid execute(DatasetRepositoryCallback callback)
DatasetRepository
callback - <T> String getDatasetName(Class<T> clazz)
clazz - the class stored in the dataset
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||