Enum Class TimelineEntityType

java.lang.Object
java.lang.Enum<TimelineEntityType>
org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntityType
All Implemented Interfaces:
Serializable, Comparable<TimelineEntityType>, Constable

@Public @Unstable public enum TimelineEntityType extends Enum<TimelineEntityType>
Defines type of entity.
  • Enum Constant Details

  • Method Details

    • values

      public static TimelineEntityType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TimelineEntityType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • isParent

      public boolean isParent(TimelineEntityType type)
      Whether the input type can be a parent of this entity.
      Parameters:
      type - entity type.
      Returns:
      true, if this entity type is parent of passed entity type, false otherwise.
    • isChild

      public boolean isChild(TimelineEntityType type)
      Whether the input type can be a child of this entity.
      Parameters:
      type - entity type.
      Returns:
      true, if this entity type is child of passed entity type, false otherwise.
    • matches

      public boolean matches(String typeString)
      Whether the type of this entity matches the type indicated by the input argument.
      Parameters:
      typeString - entity type represented as a string.
      Returns:
      true, if string representation of this entity type matches the entity type passed.