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

streaming.core.datasource.impl.MLSQLStreamJDBC.scala Maven / Gradle / Ivy

The newest version!
package streaming.core.datasource.impl

import org.apache.spark.sql.{DataFrame, DataFrameReader}
import streaming.core.datasource.{DataSourceConfig, MLSQLBaseStreamSource}
import streaming.dsl.mmlib.algs.param.{BaseParams, WowParams}

/**
  * 2019-03-20 WilliamZhu([email protected])
  */
class MLSQLStreamJDBC(override val uid: String) extends MLSQLBaseStreamSource with WowParams {
  def this() = this(BaseParams.randomUID())

  override def load(reader: DataFrameReader, config: DataSourceConfig): DataFrame = {
    throw new RuntimeException(s"load is not support by ${shortFormat}")
  }

  override def fullFormat: String = "org.apache.spark.sql.execution.streaming.JDBCSinkProvider"

  override def shortFormat: String = "streamJDBC"

  override def aliasFormat: String = "jdbc"
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy