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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic OutputModeAppend()OutputMode in which only the new rows in the streaming DataFrame/Dataset will be written to the sink.static OutputModeComplete()OutputMode in which all the rows in the streaming DataFrame/Dataset will be written to the sink every time there are some updates.static OutputModeUpdate()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- 
OutputModepublic OutputMode()
 
- 
- 
Method Details- 
AppendOutputMode 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
 
- 
CompleteOutputMode 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
 
- 
UpdateOutputMode 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
 
 
-