public class Spark1Shims extends SparkShims
SparkShims.OptionalWrapper<T>SPARK_VERSION| Constructor and Description |
|---|
Spark1Shims() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSparkListener(SparkContext sc,
SparkListener sparkListener) |
<any> |
coalesce(<any> rdd,
int numPartitions,
boolean shuffle) |
<T,R> <any> |
flatMapFunction(FlatMapFunctionAdapter<T,R> function) |
SparkListener |
getJobMetricsListener(java.util.Map<java.lang.Integer,int[]> jobIdToStageId,
java.util.Map<java.lang.Integer,java.lang.Integer> stageIdToJobId,
java.util.Map<java.lang.Integer,java.util.Map<java.lang.String,java.util.List<TaskMetrics>>> allJobMetrics,
java.util.Set<java.lang.Integer> finishedJobIds) |
<T,K,V> <any> |
pairFlatMapFunction(PairFlatMapFunctionAdapter<T,K,V> function) |
SparkJobStats |
sparkJobStats(int jobId,
PigStats.JobGraph plan,
org.apache.hadoop.conf.Configuration conf) |
SparkJobStats |
sparkJobStats(java.lang.String jobId,
PigStats.JobGraph plan,
org.apache.hadoop.conf.Configuration conf) |
<T> SparkShims.OptionalWrapper<T> |
wrapOptional(T tuple) |
getInstancepublic <T,R> <any> flatMapFunction(FlatMapFunctionAdapter<T,R> function)
flatMapFunction in class SparkShimspublic <T,K,V> <any> pairFlatMapFunction(PairFlatMapFunctionAdapter<T,K,V> function)
pairFlatMapFunction in class SparkShimspublic <any> coalesce(<any> rdd,
int numPartitions,
boolean shuffle)
coalesce in class SparkShimspublic SparkJobStats sparkJobStats(int jobId, PigStats.JobGraph plan, org.apache.hadoop.conf.Configuration conf)
sparkJobStats in class SparkShimspublic SparkJobStats sparkJobStats(java.lang.String jobId, PigStats.JobGraph plan, org.apache.hadoop.conf.Configuration conf)
sparkJobStats in class SparkShimspublic <T> SparkShims.OptionalWrapper<T> wrapOptional(T tuple)
wrapOptional in class SparkShimspublic SparkListener getJobMetricsListener(java.util.Map<java.lang.Integer,int[]> jobIdToStageId,
java.util.Map<java.lang.Integer,java.lang.Integer> stageIdToJobId,
java.util.Map<java.lang.Integer,java.util.Map<java.lang.String,java.util.List<TaskMetrics>>> allJobMetrics,
java.util.Set<java.lang.Integer> finishedJobIds)
getJobMetricsListener in class SparkShimspublic void addSparkListener(SparkContext sc,
SparkListener sparkListener)
addSparkListener in class SparkShimsCopyright © 2007-2017 The Apache Software Foundation