Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
decimal-value.h File Reference
#include <math.h>
#include <iomanip>
#include <ostream>
#include <sstream>
#include "common/logging.h"
#include "runtime/multi-precision.h"
#include "util/decimal-util.h"
#include "util/hash-util.h"
Include dependency graph for decimal-value.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  impala::DecimalValue< T >
 

Namespaces

 impala
 This file contains type definitions that are used throughout the code base.
 

Typedefs

typedef DecimalValue< int32_t > impala::Decimal4Value
 
typedef DecimalValue< int64_t > impala::Decimal8Value
 
typedef DecimalValue< int128_t > impala::Decimal16Value
 

Functions

Decimal4Value impala::ToDecimal4 (const Decimal4Value &v, bool *overflow)
 
Decimal8Value impala::ToDecimal8 (const Decimal4Value &v, bool *overflow)
 
Decimal16Value impala::ToDecimal16 (const Decimal4Value &v, bool *overflow)
 
Decimal4Value impala::ToDecimal4 (const Decimal8Value &v, bool *overflow)
 
Decimal8Value impala::ToDecimal8 (const Decimal8Value &v, bool *overflow)
 
Decimal16Value impala::ToDecimal16 (const Decimal8Value &v, bool *overflow)
 
Decimal4Value impala::ToDecimal4 (const Decimal16Value &v, bool *overflow)
 
Decimal8Value impala::ToDecimal8 (const Decimal16Value &v, bool *overflow)
 
Decimal16Value impala::ToDecimal16 (const Decimal16Value &v, bool *overflow)
 
std::ostream & impala::operator<< (std::ostream &os, const Decimal4Value &d)
 
std::ostream & impala::operator<< (std::ostream &os, const Decimal8Value &d)
 
std::ostream & impala::operator<< (std::ostream &os, const Decimal16Value &d)
 
std::size_t impala::hash_value (const Decimal4Value &v)
 This function must be called 'hash_value' to be picked up by boost. More...
 
std::size_t impala::hash_value (const Decimal8Value &v)
 
std::size_t impala::hash_value (const Decimal16Value &v)