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

The materialized value returned by ExprContext::GetValue(). More...

#include <expr-value.h>

Collaboration diagram for impala::ExprValue:

Public Member Functions

 ExprValue ()
 
 ExprValue (bool v)
 
 ExprValue (int8_t v)
 
 ExprValue (int16_t v)
 
 ExprValue (int32_t v)
 
 ExprValue (int64_t v)
 
 ExprValue (float v)
 
 ExprValue (double v)
 
 ExprValue (int64_t t, int64_t n)
 
 ExprValue (const std::string &str)
 c'tor for string values More...
 
void * SetToZero (const ColumnType &type)
 Sets the value for type to '0' and returns a pointer to the data. More...
 
void * SetToMin (const ColumnType &type)
 Sets the value for type to min and returns a pointer to the data. More...
 
void * SetToMax (const ColumnType &type)
 Sets the value for type to max and returns a pointer to the data. More...
 

Public Attributes

bool bool_val
 
int8_t tinyint_val
 
int16_t smallint_val
 
int32_t int_val
 
int64_t bigint_val
 
float float_val
 
double double_val
 
StringValue string_val
 
TimestampValue timestamp_val
 
Decimal4Value decimal4_val
 
Decimal8Value decimal8_val
 
Decimal16Value decimal16_val
 

Private Attributes

std::string string_data
 

Detailed Description

The materialized value returned by ExprContext::GetValue().

Definition at line 25 of file expr-value.h.

Constructor & Destructor Documentation

impala::ExprValue::ExprValue ( )
inline

Definition at line 39 of file expr-value.h.

impala::ExprValue::ExprValue ( bool  v)
inline

Definition at line 54 of file expr-value.h.

impala::ExprValue::ExprValue ( int8_t  v)
inline

Definition at line 55 of file expr-value.h.

impala::ExprValue::ExprValue ( int16_t  v)
inline

Definition at line 56 of file expr-value.h.

impala::ExprValue::ExprValue ( int32_t  v)
inline

Definition at line 57 of file expr-value.h.

impala::ExprValue::ExprValue ( int64_t  v)
inline

Definition at line 58 of file expr-value.h.

impala::ExprValue::ExprValue ( float  v)
inline

Definition at line 59 of file expr-value.h.

impala::ExprValue::ExprValue ( double  v)
inline

Definition at line 60 of file expr-value.h.

impala::ExprValue::ExprValue ( int64_t  t,
int64_t  n 
)
inline

Definition at line 61 of file expr-value.h.

impala::ExprValue::ExprValue ( const std::string &  str)
inline

c'tor for string values

Definition at line 64 of file expr-value.h.

References impala::StringValue::len, impala::StringValue::ptr, string_data, and string_val.

Member Function Documentation

void* impala::ExprValue::SetToZero ( const ColumnType type)
inline

Member Data Documentation

std::string impala::ExprValue::string_data
private

Definition at line 169 of file expr-value.h.

Referenced by ExprValue().

TimestampValue impala::ExprValue::timestamp_val

Definition at line 34 of file expr-value.h.

Referenced by impala::ExprContext::GetValue(), and impala::Literal::Literal().


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