SinkProgress (Spark 3.5.5 JavaDoc) (original) (raw)
Object
- org.apache.spark.sql.streaming.SinkProgress
All Implemented Interfaces:
java.io.Serializable
public class SinkProgress
extends Object
implements scala.Serializable
Information about progress made for a sink in the execution of a StreamingQuery during a trigger. See StreamingQueryProgress for more information.
param: description Description of the source corresponding to this status. param: numOutputRows Number of rows written to the sink or -1 for Continuous Mode (temporarily) or Sink V1 (until decommissioned).
Since:
2.1.0
See Also:
Serialized Form
Method Summary
All Methods Static Methods Instance Methods Concrete Methods
Modifier and Type Method and Description static SinkProgress apply(String description, scala.Option numOutputRows, java.util.Map<String,String> metrics) static long DEFAULT_NUM_OUTPUT_ROWS() String description() String json() The compact JSON representation of this progress. java.util.Map<String,String> metrics() long numOutputRows() String prettyJson() The pretty (i.e. String toString() * ### Methods inherited from class Object `equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`
Method Detail
* #### DEFAULT\_NUM\_OUTPUT\_ROWS public static long DEFAULT_NUM_OUTPUT_ROWS() * #### apply public static [SinkProgress](../../../../../org/apache/spark/sql/streaming/SinkProgress.html "class in org.apache.spark.sql.streaming") apply(String description, scala.Option<Object> numOutputRows, java.util.Map<String,String> metrics) * #### description public String description() * #### numOutputRows public long numOutputRows() * #### metrics public java.util.Map<String,String> metrics() * #### json public String json() The compact JSON representation of this progress. * #### prettyJson public String prettyJson() The pretty (i.e. indented) JSON representation of this progress. * #### toString public String toString() Overrides: `toString` in class `Object`