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

Functions to load and access the timestamp database. More...

#include <timestamp-functions.h>

Collaboration diagram for impala::TimezoneDatabase:

Public Member Functions

 TimezoneDatabase ()
 
 ~TimezoneDatabase ()
 

Static Public Member Functions

static
boost::local_time::time_zone_ptr 
FindTimezone (const std::string &tz, const TimestampValue &tv)
 

Static Public Attributes

static const
boost::local_time::time_zone_ptr 
TIMEZONE_MSK_2011_NODST
 Moscow Timezone No Daylight Savings Time (GMT+4), for use after March 2011. More...
 

Static Private Attributes

static const char * TIMEZONE_DATABASE_STR
 
static
boost::local_time::tz_database 
tz_database_
 
static std::vector< std::string > tz_region_list_
 

Detailed Description

Functions to load and access the timestamp database.

Definition at line 123 of file timestamp-functions.h.

Constructor & Destructor Documentation

impala::TimezoneDatabase::TimezoneDatabase ( )

Definition at line 403 of file timestamp-functions.cc.

impala::TimezoneDatabase::~TimezoneDatabase ( )

Definition at line 435 of file timestamp-functions.cc.

Member Function Documentation

time_zone_ptr impala::TimezoneDatabase::FindTimezone ( const std::string &  tz,
const TimestampValue tv 
)
static

Converts the name of a timezone to a boost timezone object. Some countries change their timezones, the tiemstamp is required to correctly determine the timezone information.

Definition at line 437 of file timestamp-functions.cc.

References impala::TimestampValue::date().

Member Data Documentation

const char * impala::TimezoneDatabase::TIMEZONE_DATABASE_STR
staticprivate

Definition at line 138 of file timestamp-functions.h.

const time_zone_ptr impala::TimezoneDatabase::TIMEZONE_MSK_2011_NODST
static

Moscow Timezone No Daylight Savings Time (GMT+4), for use after March 2011.

Definition at line 135 of file timestamp-functions.h.

tz_database impala::TimezoneDatabase::tz_database_
staticprivate

Definition at line 139 of file timestamp-functions.h.

vector< string > impala::TimezoneDatabase::tz_region_list_
staticprivate

Definition at line 140 of file timestamp-functions.h.


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