Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 611 Bytes

spark-sql-streaming-StreamSinkProvider.adoc

File metadata and controls

18 lines (14 loc) · 611 Bytes

StreamSinkProvider

StreamSinkProvider is an interface for objects that can create streaming sinks for a specific format or system, e.g. ConsoleSinkProvider for console format.

It defines the one and only method createSink that creates a Sink.

package org.apache.spark.sql.sources

trait StreamSinkProvider {
  def createSink(
      sqlContext: SQLContext,
      parameters: Map[String, String],
      partitionColumns: Seq[String],
      outputMode: OutputMode): Sink
}