Class SparkContextReference

    • Constructor Detail

      • SparkContextReference

        public SparkContextReference​(CrossPlatformExecutor crossPlatformExecutor,
                                     org.apache.spark.api.java.JavaSparkContext sparkContext)
        Creates a new instance.
        Parameters:
        sparkContext - the JavaSparkContext to be wrapped
    • Method Detail

      • doDispose

        protected void doDispose()
                          throws java.lang.Throwable
        Description copied from class: ExecutionResourceTemplate
        Performs the actual disposing work of this instance.
        Specified by:
        doDispose in class ExecutionResourceTemplate
        Throws:
        java.lang.Throwable - in case anything goes wrong
      • get

        public org.apache.spark.api.java.JavaSparkContext get()
        Provides the JavaSparkContext. This instance must not be disposed, yet.
        Returns:
        the wrapped JavaSparkContext