Enum AbstractMetricGroup.ChildType
- java.lang.Object
-
- java.lang.Enum<AbstractMetricGroup.ChildType>
-
- org.apache.flink.runtime.metrics.groups.AbstractMetricGroup.ChildType
-
- All Implemented Interfaces:
Serializable
,Comparable<AbstractMetricGroup.ChildType>
- Enclosing class:
- AbstractMetricGroup<A extends AbstractMetricGroup<?>>
protected static enum AbstractMetricGroup.ChildType extends Enum<AbstractMetricGroup.ChildType>
Enum for indicating which child group should be created. `KEY` is used to createGenericKeyMetricGroup
. `VALUE` is used to createGenericValueMetricGroup
. `GENERIC` is used to createGenericMetricGroup
.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AbstractMetricGroup.ChildType
valueOf(String name)
Returns the enum constant of this type with the specified name.static AbstractMetricGroup.ChildType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
KEY
public static final AbstractMetricGroup.ChildType KEY
-
VALUE
public static final AbstractMetricGroup.ChildType VALUE
-
GENERIC
public static final AbstractMetricGroup.ChildType GENERIC
-
-
Method Detail
-
values
public static AbstractMetricGroup.ChildType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AbstractMetricGroup.ChildType c : AbstractMetricGroup.ChildType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AbstractMetricGroup.ChildType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-