|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kitesdk.data.crunch.CrunchDatasets
@Beta public class CrunchDatasets
A helper class for exposing a filesystem-based dataset as a Crunch
ReadableSource or Target.
| Constructor Summary | |
|---|---|
CrunchDatasets()
|
|
| Method Summary | ||
|---|---|---|
static
|
asSource(Dataset<E> dataset,
Class<E> type)
Expose the given Dataset as a Crunch ReadableSource. |
|
static
|
asSource(View<E> view,
Class<E> type)
Expose the given View as a Crunch ReadableSource. |
|
static
|
asTarget(Dataset<E> dataset)
Expose the given Dataset as a Crunch Target. |
|
static
|
asTarget(View<E> view)
Expose the given View as a Crunch Target. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CrunchDatasets()
| Method Detail |
|---|
public static <E> ReadableSource<E> asSource(Dataset<E> dataset,
Class<E> type)
Dataset as a Crunch ReadableSource.
E - the type of entity produced by the sourcedataset - the dataset to read fromtype - the Java type of the entities in the dataset
ReadableSource for the dataset
public static <E> ReadableSource<E> asSource(View<E> view,
Class<E> type)
View as a Crunch ReadableSource.
E - the type of entity produced by the sourceview - the view to read fromtype - the Java type of the entities in the dataset
ReadableSource for the viewpublic static <E> Target asTarget(Dataset<E> dataset)
Dataset as a Crunch Target.
E - the type of entity stored in the datasetdataset - the dataset to write to
Target for the datasetpublic static <E> Target asTarget(View<E> view)
View as a Crunch Target.
E - the type of entity stored in the viewview - the view to write to
Target for the view
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||