Package org.apache.spark.sql.streaming
Class SourceProgress
Object
org.apache.spark.sql.streaming.SourceProgress
- All Implemented Interfaces:
- Serializable
Information about progress made for a source in the execution of a 
StreamingQuery during a
 trigger. See StreamingQueryProgress for more information.
 param: description Description of the source. param: startOffset The starting offset for data being read. param: endOffset The ending offset for data being read. param: latestOffset The latest offset from this source. param: numInputRows The number of records read from this source. param: inputRowsPerSecond The rate at which data is arriving from this source. param: processedRowsPerSecond The rate at which data from this source is being processed by Spark.
- Since:
- 2.1.0
- See Also:
- 
Method Details- 
description
- 
startOffset
- 
endOffset
- 
latestOffset
- 
numInputRowspublic long numInputRows()
- 
inputRowsPerSecondpublic double inputRowsPerSecond()
- 
processedRowsPerSecondpublic double processedRowsPerSecond()
- 
metrics
- 
jsonThe compact JSON representation of this progress.
- 
prettyJsonThe pretty (i.e. indented) JSON representation of this progress.
- 
toString
 
-