Package org.apache.spark.streaming.ui
Class UIUtils
Object
org.apache.spark.streaming.ui.UIUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic double
convertToTimeUnit
(long milliseconds, TimeUnit unit) Convertmilliseconds
to the specifiedunit
.static String
createOutputOperationFailureForUI
(String failure) static scala.collection.Seq<scala.xml.Node>
failureReasonCell
(String failureReason, int rowspan, boolean includeFirstLineInExpandDetails) normalizeDuration
(long milliseconds) Find the bestTimeUnit
for converting milliseconds to a friendly string.static String
shortTimeUnitString
(TimeUnit unit) Return the short string for aTimeUnit
.
-
Constructor Details
-
UIUtils
public UIUtils()
-
-
Method Details
-
shortTimeUnitString
Return the short string for aTimeUnit
.- Parameters:
unit
- (undocumented)- Returns:
- (undocumented)
-
normalizeDuration
Find the bestTimeUnit
for converting milliseconds to a friendly string. Return the value after converting, also with its TimeUnit.- Parameters:
milliseconds
- (undocumented)- Returns:
- (undocumented)
-
convertToTimeUnit
Convertmilliseconds
to the specifiedunit
. We cannot useTimeUnit.convert
because it will discard the fractional part.- Parameters:
milliseconds
- (undocumented)unit
- (undocumented)- Returns:
- (undocumented)
-
createOutputOperationFailureForUI
-
failureReasonCell
public static scala.collection.Seq<scala.xml.Node> failureReasonCell(String failureReason, int rowspan, boolean includeFirstLineInExpandDetails)
-