Class UIUtils
Object
org.apache.spark.sql.streaming.ui.UIUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getQueryName
(org.apache.spark.sql.streaming.ui.StreamingQueryUIData uiData) static String
getQueryStatus
(org.apache.spark.sql.streaming.ui.StreamingQueryUIData uiData) static long
parseProgressTimestamp
(String timestamp) 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 returndefault
value.static double
withNumberInvalid
(scala.Function0<Object> number) Check whethernumber
is valid, if not return 0.0d
-
Constructor Details
-
UIUtils
public UIUtils()
-
-
Method Details
-
withNumberInvalid
Check whethernumber
is valid, if not return 0.0d- Parameters:
number
- (undocumented)- Returns:
- (undocumented)
-
withNoProgress
public 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 returndefault
value.- Parameters:
query
- (undocumented)body
- (undocumented)default_
- (undocumented)- Returns:
- (undocumented)
-
getQueryName
-
getQueryStatus
-
parseProgressTimestamp
-