Package org.apache.spark.status.protobuf
Class Utils
Object
org.apache.spark.status.protobuf.Utils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> scala.Option<T>
getOptional
(boolean condition, scala.Function0<T> result) static String
getStringField
(boolean condition, scala.Function0<String> result) static <K,
V> void setJMapField
(Map<K, V> input, scala.Function1<Map<K, V>, Object> putAllFunc) static void
setStringField
(String input, scala.Function1<String, Object> f)
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
getOptional
public static <T> scala.Option<T> getOptional(boolean condition, scala.Function0<T> result) -
setStringField
-
getStringField
-
setJMapField
-