Package org.apache.spark.sql.streaming
Class OutputMode
Object
org.apache.spark.sql.streaming.OutputMode
OutputMode describes what data will be written to a streaming sink when there is
new data available in a streaming DataFrame/Dataset.
- Since:
- 2.0.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic OutputMode
Append()
OutputMode in which only the new rows in the streaming DataFrame/Dataset will be written to the sink.static OutputMode
Complete()
OutputMode in which all the rows in the streaming DataFrame/Dataset will be written to the sink every time there are some updates.static OutputMode
Update()
OutputMode in which only the rows that were updated in the streaming DataFrame/Dataset will be written to the sink every time there are some updates.
-
Constructor Details
-
OutputMode
public OutputMode()
-
-
Method Details
-
Append
OutputMode in which only the new rows in the streaming DataFrame/Dataset will be written to the sink. This output mode can be only be used in queries that do not contain any aggregation.- Since:
- 2.0.0
-
Complete
OutputMode in which all the rows in the streaming DataFrame/Dataset will be written to the sink every time there are some updates. This output mode can only be used in queries that contain aggregations.- Since:
- 2.0.0
-
Update
OutputMode in which only the rows that were updated in the streaming DataFrame/Dataset 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.- Since:
- 2.1.1
-