Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
impala::RuntimeProfile::DerivedCounter Class Reference

#include <runtime-profile.h>

Inheritance diagram for impala::RuntimeProfile::DerivedCounter:
Collaboration diagram for impala::RuntimeProfile::DerivedCounter:

Public Member Functions

 DerivedCounter (TUnit::type unit, const DerivedCounterFunction &counter_fn)
 
virtual int64_t value () const
 
virtual void Add (int64_t delta)
 
void BitOr (int64_t delta)
 Use this to update if the counter is a bitmap. More...
 
virtual void Set (int64_t value)
 
virtual void Set (double value)
 
virtual double double_value () const
 
TUnit::type unit () const
 

Protected Attributes

AtomicInt< int64_t > value_
 
TUnit::type unit_
 

Private Attributes

DerivedCounterFunction counter_fn_
 

Detailed Description

A DerivedCounter also has a name and unit, but the value is computed. Do not call Set() and Add().

Definition at line 165 of file runtime-profile.h.

Constructor & Destructor Documentation

impala::RuntimeProfile::DerivedCounter::DerivedCounter ( TUnit::type  unit,
const DerivedCounterFunction counter_fn 
)
inline

Definition at line 167 of file runtime-profile.h.

Member Function Documentation

void impala::RuntimeProfile::Counter::BitOr ( int64_t  delta)
inlineinherited

Use this to update if the counter is a bitmap.

Definition at line 98 of file runtime-profile.h.

References impala::RuntimeProfile::Counter::value_.

Referenced by impala::DiskIoMgr::ReadRange().

virtual double impala::RuntimeProfile::Counter::double_value ( ) const
inlinevirtualinherited
virtual void impala::RuntimeProfile::Counter::Set ( double  value)
inlinevirtualinherited
TUnit::type impala::RuntimeProfile::Counter::unit ( ) const
inlineinherited
virtual int64_t impala::RuntimeProfile::DerivedCounter::value ( ) const
inlinevirtual

Reimplemented from impala::RuntimeProfile::Counter.

Definition at line 171 of file runtime-profile.h.

References counter_fn_.

Referenced by impala::TEST().

Member Data Documentation

DerivedCounterFunction impala::RuntimeProfile::DerivedCounter::counter_fn_
private

Definition at line 176 of file runtime-profile.h.

Referenced by value().

TUnit::type impala::RuntimeProfile::Counter::unit_
protectedinherited

The documentation for this class was generated from the following file: