public abstract class SparkShims
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Class and Description |
|---|---|
static interface |
SparkShims.OptionalWrapper<T> |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SPARK_VERSION |
| Constructor and Description |
|---|
SparkShims() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
addSparkListener(SparkContext sc,
SparkListener sparkListener) |
abstract <any> |
coalesce(<any> rdd,
int numPartitions,
boolean shuffle) |
abstract <T,R> <any> |
flatMapFunction(FlatMapFunctionAdapter<T,R> function) |
static SparkShims |
getInstance() |
abstract 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) |
abstract <T,K,V> <any> |
pairFlatMapFunction(PairFlatMapFunctionAdapter<T,K,V> function) |
abstract SparkJobStats |
sparkJobStats(int jobId,
PigStats.JobGraph plan,
org.apache.hadoop.conf.Configuration conf) |
abstract SparkJobStats |
sparkJobStats(java.lang.String jobId,
PigStats.JobGraph plan,
org.apache.hadoop.conf.Configuration conf) |
abstract <T> SparkShims.OptionalWrapper<T> |
wrapOptional(T tuple) |
public static final java.lang.String SPARK_VERSION
public static SparkShims getInstance()
public abstract <T,R> <any> flatMapFunction(FlatMapFunctionAdapter<T,R> function)
public abstract <T,K,V> <any> pairFlatMapFunction(PairFlatMapFunctionAdapter<T,K,V> function)
public abstract <any> coalesce(<any> rdd,
int numPartitions,
boolean shuffle)
public abstract SparkJobStats sparkJobStats(int jobId, PigStats.JobGraph plan, org.apache.hadoop.conf.Configuration conf)
public abstract SparkJobStats sparkJobStats(java.lang.String jobId, PigStats.JobGraph plan, org.apache.hadoop.conf.Configuration conf)
public abstract <T> SparkShims.OptionalWrapper<T> wrapOptional(T tuple)
public abstract 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)
public abstract void addSparkListener(SparkContext sc,
SparkListener sparkListener)
Copyright © 2007-2017 The Apache Software Foundation