java.io.Serializable, java.lang.Comparable<TimelineMetricOperation>public enum TimelineMetricOperation extends java.lang.Enum<TimelineMetricOperation>
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
PREV_METRIC_STATE_KEY |
| Modifier and Type | Method | Description |
|---|---|---|
TimelineMetric |
aggregate(TimelineMetric incoming,
TimelineMetric aggregate,
java.util.Map<java.lang.Object,java.lang.Object> state) |
Perform the aggregation operation.
|
java.lang.String |
toString() |
|
static TimelineMetricOperation |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static TimelineMetricOperation[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TimelineMetricOperation NOP
public static final TimelineMetricOperation MAX
public static final TimelineMetricOperation REPLACE
public static final TimelineMetricOperation SUM
public static final TimelineMetricOperation AVG
public static final java.lang.String PREV_METRIC_STATE_KEY
public static TimelineMetricOperation[] values()
for (TimelineMetricOperation c : TimelineMetricOperation.values()) System.out.println(c);
public static TimelineMetricOperation valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic TimelineMetric aggregate(TimelineMetric incoming, TimelineMetric aggregate, java.util.Map<java.lang.Object,java.lang.Object> state)
incoming - Incoming metricaggregate - Base aggregation metricstate - Operation statepublic java.lang.String toString()
toString in class java.lang.Enum<TimelineMetricOperation>Copyright © 2008–2025 Apache Software Foundation. All rights reserved.