sparkle-0.1: src/Control/Distributed/Spark/SQL/Context.hs
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
module Control.Distributed.Spark.SQL.Context where
import Control.Distributed.Spark.Context
import Foreign.JNI
import Language.Java
newtype SQLContext = SQLContext (J ('Class "org.apache.spark.sql.SQLContext"))
instance Coercible SQLContext ('Class "org.apache.spark.sql.SQLContext")
newSQLContext :: SparkContext -> IO SQLContext
newSQLContext sc = new [coerce sc]