java.lang.Object
org.apache.hadoop.yarn.server.timelineservice.documentstore.collection.document.entity.TimelineMetricSubDoc

public class TimelineMetricSubDoc extends Object
This class represents a Sub Document for TimelineMetric that will be used when creating new TimelineEntityDocument.
  • Constructor Details

    • TimelineMetricSubDoc

      public TimelineMetricSubDoc()
    • TimelineMetricSubDoc

      public TimelineMetricSubDoc(org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetric timelineMetric)
  • Method Details

    • getRealtimeAggregationOp

      public org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetricOperation getRealtimeAggregationOp()
      Get the real time aggregation operation of this metric.
      Returns:
      Real time aggregation operation
    • setRealtimeAggregationOp

      public void setRealtimeAggregationOp(org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetricOperation op)
      Set the real time aggregation operation of this metric.
      Parameters:
      op - A timeline metric operation that the metric should perform on real time aggregations
    • getId

      public String getId()
    • setId

      public void setId(String metricId)
    • setSingleDataTimestamp

      public void setSingleDataTimestamp(long singleDataTimestamp)
    • getSingleDataTimestamp

      public long getSingleDataTimestamp()
      Get single data timestamp of the metric.
      Returns:
      the single data timestamp
    • getSingleDataValue

      public Number getSingleDataValue()
      Get single data value of the metric.
      Returns:
      the single data value
    • setSingleDataValue

      public void setSingleDataValue(Number singleDataValue)
    • getValues

      public Map<Long,Number> getValues()
    • setValues

      public void setValues(Map<Long,Number> vals)
    • getValuesJAXB

      public TreeMap<Long,Number> getValuesJAXB()
    • getType

      public org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetric.Type getType()
    • setType

      public void setType(org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetric.Type metricType)
    • isValid

      public boolean isValid()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • fetchTimelineMetric

      public org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetric fetchTimelineMetric()