Package org.apache.hadoop.yarn.util
Class TimelineServiceHelper
java.lang.Object
org.apache.hadoop.yarn.util.TimelineServiceHelper
Helper class for Timeline service.
-
Method Summary
Modifier and TypeMethodDescriptionstatic longinvertLong(long key) Inverts the given key.static <E,V> HashMap<E, V> mapCastToHashMap(Map<E, V> originalMap) Cast map to HashMap for generic type.
-
Method Details
-
mapCastToHashMap
Cast map to HashMap for generic type.- Type Parameters:
E- key typeV- 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
-