Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
timer-metric.h
Go to the documentation of this file.
1 #ifndef TIMER_METRIC_H
2 #define TIMER_METRIC_H
3 
4 #include "util/metrics.h"
5 
6 namespace impala {
7 
8 class TimerMetric : public Metric {
9  public:
10  virtual void ToJson(rapidjson::Document* document, rapidjson::Value* val) { }
11  virtual void ToLegacyJson(rapidjson::Document* document) { }
12 
13  virtual std::string ToHumanReadable() { }
14 
15  private:
16 
17 }
18 
19 }
20 
21 #endif
virtual void ToJson(rapidjson::Document *document, rapidjson::Value *val)
name, value, human_readable, description
Definition: timer-metric.h:10
virtual void ToLegacyJson(rapidjson::Document *document)
This method is kept for backwards-compatibility with CM5.0.
Definition: timer-metric.h:11
virtual std::string ToHumanReadable()
Definition: timer-metric.h:13
TODO: Add ToThrift() for conversion to an RPC-friendly format.
Definition: metrics.h:50