All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.spark.sql.NotebookSparkSession.scala Maven / Gradle / Ivy

package org.apache.spark.sql

import almond.interpreter.api.{CommHandler, OutputHandler}
import ammonite.repl.ReplAPI
import ammonite.interp.InterpAPI
import org.apache.spark.sql.almondinternals.NotebookSparkSessionBuilder

object NotebookSparkSession {

  def builder()
   (implicit
     interpApi: InterpAPI,
     replApi: ReplAPI,
     publish: OutputHandler,
     commHandler: CommHandler
   ): NotebookSparkSessionBuilder =
    new NotebookSparkSessionBuilder

  def sync(session: SparkSession = null)(implicit replApi: ReplAPI): SparkSession =
    AmmoniteSparkSession.sync(session)

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy