public class ExportSupport
extends java.lang.Object
Constructor and Description |
---|
ExportSupport() |
Modifier and Type | Method and Description |
---|---|
static void |
assertExportSupported(org.apache.spark.api.java.JavaSparkContext sc)
Verify that exporting data is supported, and throw an informative exception if not.
|
static boolean |
exportSupported(org.apache.spark.api.java.JavaSparkContext sc)
Check if exporting data is supported in the current environment.
|
static boolean |
exportSupported(java.lang.String sparkMaster,
org.apache.hadoop.fs.FileSystem fs)
Check if exporting data is supported in the current environment.
|
public static void assertExportSupported(@NonNull org.apache.spark.api.java.JavaSparkContext sc)
sc
- the Spark contextpublic static boolean exportSupported(@NonNull org.apache.spark.api.java.JavaSparkContext sc)
sc
- the Spark contextpublic static boolean exportSupported(@NonNull java.lang.String sparkMaster, @NonNull org.apache.hadoop.fs.FileSystem fs)
sparkMaster
- the Spark masterfs
- the Hadoop file system