| 
||||||||||
| 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 Datasets and Views as Crunch
 ReadableSources or Targets.
 
| Constructor Summary | |
|---|---|
CrunchDatasets()
 | 
|
| Method Summary | ||
|---|---|---|
static
 | 
asSource(Dataset<E> dataset,
         Class<E> type)
Deprecated. will be removed in 0.16.0; use asSource(View) | 
|
static
 | 
asSource(String uri,
         Class<E> type)
Expose the View or Dataset represented by the URI
 as a Crunch ReadableSource. | 
|
static
 | 
asSource(URI uri,
         Class<E> type)
Expose the View or Dataset represented by the URI
 as a Crunch ReadableSource. | 
|
static
 | 
asSource(View<E> view)
Expose the given View as a Crunch ReadableSource. | 
|
static
 | 
asSource(View<E> view,
         Class<E> type)
Deprecated. will be removed in 0.16.0; use asSource(View) | 
|
static
 | 
asTarget(Dataset<E> dataset)
Deprecated. will be removed in 0.16.0; use asTarget(View) | 
|
static Target | 
asTarget(String uri)
Expose the Dataset or View represented by the given
 URI as a Crunch Target. | 
|
static Target | 
asTarget(URI uri)
Expose the Dataset or View represented by the given
 URI 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 | 
|---|
@Deprecated
public static <E> ReadableSource<E> asSource(Dataset<E> dataset,
                                                        Class<E> type)
asSource(View)
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)
asSource(View)
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> ReadableSource<E> asSource(View<E> view)
View as a Crunch ReadableSource.
E - the type of entity produced by the sourceview - the view to read from
ReadableSource for the view
public static <E> ReadableSource<E> asSource(URI uri,
                                             Class<E> type)
View or Dataset represented by the URI
 as a Crunch ReadableSource.
E - the type of entity produced by the sourceuri - the URI of the view or dataset to read fromtype - the Java type of the entities in the dataset
ReadableSource for the view
public static <E> ReadableSource<E> asSource(String uri,
                                             Class<E> type)
View or Dataset represented by the URI
 as a Crunch ReadableSource.
E - the type of entity produced by the sourceuri - the URI of the view or dataset to read fromtype - the Java type of the entities in the dataset
ReadableSource for the view@Deprecated public static <E> Target asTarget(Dataset<E> dataset)
asTarget(View)
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 viewpublic static Target asTarget(String uri)
Dataset or View represented by the given
 URI as a Crunch Target.
uri - the dataset or view URI
Target for the dataset or viewpublic static Target asTarget(URI uri)
Dataset or View represented by the given
 URI as a Crunch Target.
uri - the dataset or view URI
Target for the dataset or view
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||