Class Utils

Object
org.apache.spark.status.protobuf.Utils

public class Utils extends Object
  • Constructor Details

    • Utils

      public Utils()
  • Method Details

    • getOptional

      public static <T> scala.Option<T> getOptional(boolean condition, scala.Function0<T> result)
    • setStringField

      public static void setStringField(String input, scala.Function1<String,Object> f)
    • getStringField

      public static String getStringField(boolean condition, scala.Function0<String> result)
    • setJMapField

      public static <K, V> void setJMapField(Map<K,V> input, scala.Function1<Map<K,V>,Object> putAllFunc)