Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
|
The materialized value returned by ExprContext::GetValue(). More...
#include <expr-value.h>
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 |
The materialized value returned by ExprContext::GetValue().
Definition at line 25 of file expr-value.h.
|
inline |
Definition at line 39 of file expr-value.h.
|
inline |
Definition at line 54 of file expr-value.h.
|
inline |
Definition at line 55 of file expr-value.h.
|
inline |
Definition at line 56 of file expr-value.h.
|
inline |
Definition at line 57 of file expr-value.h.
|
inline |
Definition at line 58 of file expr-value.h.
|
inline |
Definition at line 59 of file expr-value.h.
|
inline |
Definition at line 60 of file expr-value.h.
|
inline |
Definition at line 61 of file expr-value.h.
|
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.
|
inline |
Sets the value for type to max and returns a pointer to the data.
Definition at line 137 of file expr-value.h.
References bigint_val, bool_val, double_val, float_val, int_val, smallint_val, tinyint_val, impala::ColumnType::type, impala::TYPE_BIGINT, impala::TYPE_BOOLEAN, impala::TYPE_DOUBLE, impala::TYPE_FLOAT, impala::TYPE_INT, impala::TYPE_NULL, impala::TYPE_SMALLINT, and impala::TYPE_TINYINT.
Referenced by impala::AggregationNode::ConstructIntermediateTuple(), and impala::PartitionedAggregationNode::ConstructIntermediateTuple().
|
inline |
Sets the value for type to min and returns a pointer to the data.
Definition at line 103 of file expr-value.h.
References bigint_val, bool_val, double_val, float_val, int_val, smallint_val, tinyint_val, impala::ColumnType::type, impala::TYPE_BIGINT, impala::TYPE_BOOLEAN, impala::TYPE_DOUBLE, impala::TYPE_FLOAT, impala::TYPE_INT, impala::TYPE_NULL, impala::TYPE_SMALLINT, and impala::TYPE_TINYINT.
Referenced by impala::AggregationNode::ConstructIntermediateTuple(), and impala::PartitionedAggregationNode::ConstructIntermediateTuple().
|
inline |
Sets the value for type to '0' and returns a pointer to the data.
Definition at line 71 of file expr-value.h.
References bigint_val, bool_val, double_val, float_val, int_val, smallint_val, tinyint_val, impala::ColumnType::type, impala::TYPE_BIGINT, impala::TYPE_BOOLEAN, impala::TYPE_DOUBLE, impala::TYPE_FLOAT, impala::TYPE_INT, impala::TYPE_NULL, impala::TYPE_SMALLINT, and impala::TYPE_TINYINT.
int64_t impala::ExprValue::bigint_val |
Definition at line 30 of file expr-value.h.
Referenced by impala::Literal::DebugString(), impala::Literal::GetBigIntVal(), impala::Literal::GetCodegendComputeFn(), impala::ExprContext::GetValue(), impala::Literal::Literal(), SetToMax(), SetToMin(), and SetToZero().
bool impala::ExprValue::bool_val |
Definition at line 26 of file expr-value.h.
Referenced by impala::Literal::DebugString(), impala::Literal::GetBooleanVal(), impala::Literal::GetCodegendComputeFn(), impala::ExprContext::GetValue(), impala::Literal::Literal(), SetToMax(), SetToMin(), and SetToZero().
Decimal16Value impala::ExprValue::decimal16_val |
Definition at line 37 of file expr-value.h.
Referenced by impala::Literal::DebugString(), impala::Literal::GetCodegendComputeFn(), impala::Literal::GetDecimalVal(), impala::ExprContext::GetValue(), and impala::Literal::Literal().
Decimal4Value impala::ExprValue::decimal4_val |
Definition at line 35 of file expr-value.h.
Referenced by impala::Literal::DebugString(), impala::Literal::GetCodegendComputeFn(), impala::Literal::GetDecimalVal(), impala::ExprContext::GetValue(), and impala::Literal::Literal().
Decimal8Value impala::ExprValue::decimal8_val |
Definition at line 36 of file expr-value.h.
Referenced by impala::Literal::DebugString(), impala::Literal::GetCodegendComputeFn(), impala::Literal::GetDecimalVal(), impala::ExprContext::GetValue(), and impala::Literal::Literal().
double impala::ExprValue::double_val |
Definition at line 32 of file expr-value.h.
Referenced by impala::Literal::DebugString(), impala::Literal::GetCodegendComputeFn(), impala::Literal::GetDoubleVal(), impala::ExprContext::GetValue(), impala::Literal::Literal(), SetToMax(), SetToMin(), and SetToZero().
float impala::ExprValue::float_val |
Definition at line 31 of file expr-value.h.
Referenced by impala::Literal::DebugString(), impala::Literal::GetCodegendComputeFn(), impala::Literal::GetFloatVal(), impala::ExprContext::GetValue(), impala::Literal::Literal(), SetToMax(), SetToMin(), and SetToZero().
int32_t impala::ExprValue::int_val |
Definition at line 29 of file expr-value.h.
Referenced by impala::Literal::DebugString(), impala::Literal::GetCodegendComputeFn(), impala::Literal::GetIntVal(), impala::ExprContext::GetValue(), impala::Literal::Literal(), SetToMax(), SetToMin(), and SetToZero().
int16_t impala::ExprValue::smallint_val |
Definition at line 28 of file expr-value.h.
Referenced by impala::Literal::DebugString(), impala::Literal::GetCodegendComputeFn(), impala::Literal::GetSmallIntVal(), impala::ExprContext::GetValue(), impala::Literal::Literal(), SetToMax(), SetToMin(), and SetToZero().
|
private |
Definition at line 169 of file expr-value.h.
Referenced by ExprValue().
StringValue impala::ExprValue::string_val |
Definition at line 33 of file expr-value.h.
Referenced by impala::Literal::DebugString(), ExprValue(), impala::Literal::GetCodegendComputeFn(), impala::Literal::GetStringVal(), impala::ExprContext::GetValue(), and impala::Literal::Literal().
TimestampValue impala::ExprValue::timestamp_val |
Definition at line 34 of file expr-value.h.
Referenced by impala::ExprContext::GetValue(), and impala::Literal::Literal().
int8_t impala::ExprValue::tinyint_val |
Definition at line 27 of file expr-value.h.
Referenced by impala::Literal::DebugString(), impala::Literal::GetCodegendComputeFn(), impala::Literal::GetTinyIntVal(), impala::ExprContext::GetValue(), impala::Literal::Literal(), SetToMax(), SetToMin(), and SetToZero().