public class UIUtils
extends Object
Constructor and Description |
---|
UIUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
getQueryName(org.apache.spark.sql.streaming.ui.StreamingQueryUIData query) |
static String |
getQueryStatus(org.apache.spark.sql.streaming.ui.StreamingQueryUIData query) |
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 return
default value. |
static double |
withNumberInvalid(scala.Function0<Object> number)
Check whether
number is valid, if not return 0.0d |
public static double withNumberInvalid(scala.Function0<Object> number)
number
is valid, if not return 0.0dnumber
- (undocumented)public static <T> T withNoProgress(org.apache.spark.sql.streaming.ui.StreamingQueryUIData query, scala.Function0<T> body, T default_)
default
value.query
- (undocumented)body
- (undocumented)default_
- (undocumented)public static String getQueryName(org.apache.spark.sql.streaming.ui.StreamingQueryUIData query)
public static String getQueryStatus(org.apache.spark.sql.streaming.ui.StreamingQueryUIData query)
public static long parseProgressTimestamp(String timestamp)