Class TimelineServiceHelper

java.lang.Object
org.apache.hadoop.yarn.util.TimelineServiceHelper

@LimitedPrivate({"MapReduce","YARN"}) public final class TimelineServiceHelper extends Object
Helper class for Timeline service.
  • Method Details

    • mapCastToHashMap

      public static <E, V> HashMap<E,V> mapCastToHashMap(Map<E,V> originalMap)
      Cast map to HashMap for generic type.
      Type Parameters:
      E - key type
      V - value type
      Parameters:
      originalMap - the map need to be casted
      Returns:
      casted HashMap object
    • invertLong

      public static long invertLong(long key)
      Inverts the given key.
      Parameters:
      key - value to be inverted .
      Returns:
      inverted long