package co.cask.cdap.internal.app.runtime.spark;
import org.apache.hadoop.conf.Configuration;
<BUG>import org.apache.hadoop.mapreduce.InputFormat;
import org.apache.spark.SparkContext;</BUG>
import org.apache.spark.api.java.JavaSparkContext;
<BUG>import java.util.Map;</BUG>
interface SparkFacade {
<R, K, V> R createRDD(Class<? extends InputFormat> inputFormatClass,
Class<K> keyClass, Class<V> valueClass, Configuration hConf);
<BUG><R, K, V> void saveAsDataset(R rdd, String datasetName, Map<String, String> arguments,
Class<K> keyClass, Class<V> valueClass, Configuration hConf);</BUG>
<T> T getContext();

package co.cask.cdap.internal.app.runtime.spark;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.mapreduce.InputFormat;
import org.apache.hadoop.mapreduce.OutputFormat;
import org.apache.spark.SparkContext;
import org.apache.spark.api.java.JavaSparkContext;
interface SparkFacade {
<R, K, V> R createRDD(Class<? extends InputFormat> inputFormatClass,
Class<K> keyClass, Class<V> valueClass, Configuration hConf);
<R, K, V> void saveAsDataset(R rdd, Class<? extends OutputFormat> outputFormatClass,
Class<K> keyClass, Class<V> valueClass, Configuration hConf);
<T> T getContext();
