public class TimelineMetricSubDoc
extends java.lang.Object
TimelineMetric that will be
used when creating new TimelineEntityDocument.| Constructor | Description |
|---|---|
TimelineMetricSubDoc() |
|
TimelineMetricSubDoc(org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetric timelineMetric) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object obj) |
|
org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetric |
fetchTimelineMetric() |
|
java.lang.String |
getId() |
|
org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetricOperation |
getRealtimeAggregationOp() |
Get the real time aggregation operation of this metric.
|
long |
getSingleDataTimestamp() |
Get single data timestamp of the metric.
|
java.lang.Number |
getSingleDataValue() |
Get single data value of the metric.
|
org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetric.Type |
getType() |
|
java.util.Map<java.lang.Long,java.lang.Number> |
getValues() |
|
java.util.TreeMap<java.lang.Long,java.lang.Number> |
getValuesJAXB() |
|
int |
hashCode() |
|
boolean |
isValid() |
|
void |
setId(java.lang.String metricId) |
|
void |
setRealtimeAggregationOp(org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetricOperation op) |
Set the real time aggregation operation of this metric.
|
void |
setSingleDataTimestamp(long singleDataTimestamp) |
|
void |
setSingleDataValue(java.lang.Number singleDataValue) |
|
void |
setType(org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetric.Type metricType) |
|
void |
setValues(java.util.Map<java.lang.Long,java.lang.Number> vals) |
public TimelineMetricSubDoc()
public TimelineMetricSubDoc(org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetric timelineMetric)
public org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetricOperation getRealtimeAggregationOp()
public void setRealtimeAggregationOp(org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetricOperation op)
op - A timeline metric operation that the metric should perform on
real time aggregationspublic java.lang.String getId()
public void setId(java.lang.String metricId)
public void setSingleDataTimestamp(long singleDataTimestamp)
public long getSingleDataTimestamp()
public java.lang.Number getSingleDataValue()
public void setSingleDataValue(java.lang.Number singleDataValue)
public java.util.Map<java.lang.Long,java.lang.Number> getValues()
public void setValues(java.util.Map<java.lang.Long,java.lang.Number> vals)
public java.util.TreeMap<java.lang.Long,java.lang.Number> getValuesJAXB()
public org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetric.Type getType()
public void setType(org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetric.Type metricType)
public boolean isValid()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetric fetchTimelineMetric()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.