io.hydrosphere.mist.lib.ContextSupport.scala Maven / Gradle / Ivy
package io.hydrosphere.mist.lib
import io.hydrosphere.mist.contexts.ContextWrapper
import org.apache.spark.SparkContext
trait ContextSupport {
private var _context: SparkContext = null
protected def context: SparkContext = _context
private[mist] def setup(sc: ContextWrapper) = _context = sc.context
}