Class UIUtils
Object
org.apache.spark.sql.streaming.ui.UIUtils
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic StringgetQueryName(org.apache.spark.sql.streaming.ui.StreamingQueryUIData uiData) static StringgetQueryStatus(org.apache.spark.sql.streaming.ui.StreamingQueryUIData uiData) static longparseProgressTimestamp(String timestamp) static <T> TwithNoProgress(org.apache.spark.sql.streaming.ui.StreamingQueryUIData query, scala.Function0<T> body, T default_) Execute a block of code when there is already one completed batch in streaming query, otherwise returndefaultvalue.static doublewithNumberInvalid(scala.Function0<Object> number) Check whethernumberis valid, if not return 0.0d
- 
Constructor Details- 
UIUtilspublic UIUtils()
 
- 
- 
Method Details- 
withNumberInvalidCheck whethernumberis valid, if not return 0.0d- Parameters:
- number- (undocumented)
- Returns:
- (undocumented)
 
- 
withNoProgresspublic static <T> T withNoProgress(org.apache.spark.sql.streaming.ui.StreamingQueryUIData query, scala.Function0<T> body, T default_) Execute a block of code when there is already one completed batch in streaming query, otherwise returndefaultvalue.- Parameters:
- query- (undocumented)
- body- (undocumented)
- default_- (undocumented)
- Returns:
- (undocumented)
 
- 
getQueryName
- 
getQueryStatus
- 
parseProgressTimestamp
 
-