DataStreamWriter.OutputMode Method

Definition

Overloads

OutputMode(OutputMode)

Specifies how data of a streaming DataFrame is written to a streaming sink.

OutputMode(String)

Specifies how data of a streaming DataFrame is written to a streaming sink.

OutputMode(OutputMode)

Specifies how data of a streaming DataFrame is written to a streaming sink.

public Microsoft.Spark.Sql.Streaming.DataStreamWriter OutputMode (Microsoft.Spark.Sql.Streaming.OutputMode outputMode);
member this.OutputMode : Microsoft.Spark.Sql.Streaming.OutputMode -> Microsoft.Spark.Sql.Streaming.DataStreamWriter
Public Function OutputMode (outputMode As OutputMode) As DataStreamWriter

Parameters

outputMode
OutputMode

Output mode enum

Returns

This DataStreamWriter object

Applies to

OutputMode(String)

Specifies how data of a streaming DataFrame is written to a streaming sink.

public Microsoft.Spark.Sql.Streaming.DataStreamWriter OutputMode (string outputMode);
member this.OutputMode : string -> Microsoft.Spark.Sql.Streaming.DataStreamWriter
Public Function OutputMode (outputMode As String) As DataStreamWriter

Parameters

outputMode
String

Output mode name

Returns

This DataStreamWriter object

Remarks

The following mode is supported: "append": Only the new rows in the streaming DataFrame/Dataset will be written to the sink. "complete": All the rows in the streaming DataFrame/Dataset will be written to the sink every time there are some updates. "update": Only the rows that were updated in the streaming DataFrame will be written to the sink every time there are some updates. If the query doesn't contain aggregations, it will be equivalent to `append` mode.

Applies to