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

#include <udf.h>

Inheritance diagram for impala_udf::StringVal:
Collaboration diagram for impala_udf::StringVal:

Public Member Functions

 StringVal (uint8_t *ptr=NULL, int len=0)
 
 StringVal (const char *ptr)
 
 StringVal (FunctionContext *context, int len)
 
bool operator== (const StringVal &other) const
 
bool operator!= (const StringVal &other) const
 

Static Public Member Functions

static StringVal null ()
 

Public Attributes

int len
 
uint8_t * ptr
 
bool is_null
 

Detailed Description

Note: there is a difference between a NULL string (is_null == true) and an empty string (len == 0).

Definition at line 521 of file udf.h.

Constructor & Destructor Documentation

impala_udf::StringVal::StringVal ( uint8_t *  ptr = NULL,
int  len = 0 
)
inline

Construct a StringVal from ptr/len. Note: this does not make a copy of ptr so the buffer must exist as long as this StringVal does.

Definition at line 527 of file udf.h.

References len.

impala_udf::StringVal::StringVal ( const char *  ptr)
inline

Construct a StringVal from NULL-terminated c-string. Note: this does not make a copy of ptr so the underlying string must exist as long as this StringVal does.

Definition at line 534 of file udf.h.

StringVal::StringVal ( FunctionContext context,
int  len 
)

Creates a StringVal, allocating a new buffer with 'len'. This should be used to return StringVal objects in UDF/UDAs that need to allocate new string memory.

Definition at line 420 of file udf.cc.

Member Function Documentation

bool impala_udf::StringVal::operator!= ( const StringVal other) const
inline

Definition at line 553 of file udf.h.

bool impala_udf::StringVal::operator== ( const StringVal other) const
inline

Definition at line 547 of file udf.h.

References impala_udf::AnyVal::is_null, len, and ptr.

Member Data Documentation

bool impala_udf::AnyVal::is_null
inherited

Definition at line 359 of file udf.h.

Referenced by impala::UdfBuiltins::Abs(), impala::DecimalFunctions::Abs(), AddUdf(), impala::AggregateFunctions::AppxMedianFinalize(), impala::StringFunctions::Ascii(), impala::AggregateFunctions::AvgInit(), AvgUpdate(), impala::MathFunctions::Bin(), impala::DecimalOperators::CastToBooleanVal(), impala::CastFunctions::CastToChar(), impala::DecimalOperators::CastToDecimalVal(), impala::DecimalOperators::CastToStringVal(), impala::CastFunctions::CastToStringVal(), impala::DecimalOperators::CastToTimestampVal(), impala::CastFunctions::CastToTimestampVal(), impala::StringFunctions::CharLength(), impala::StringFunctions::ConcatWs(), impala::LikePredicate::ConstantEndsWithFn(), impala::LikePredicate::ConstantEqualsFn(), impala::LikePredicate::ConstantRegexFn(), impala::LikePredicate::ConstantRegexFnPartial(), impala::LikePredicate::ConstantStartsWithFn(), impala::LikePredicate::ConstantSubstringFn(), impala::MathFunctions::ConvInt(), impala::MathFunctions::ConvString(), Count2Update(), Count3Update(), Count4Update(), CountInit(), impala::AggregateFunctions::CountMerge(), impala::AggregateFunctions::CountRemove(), impala::AggregateFunctions::CountStarRemove(), impala::AggregateFunctions::CountStarUpdate(), CountUpdate(), impala::AggregateFunctions::CountUpdate(), impala::TimestampFunctions::DateAddSub(), impala::TimestampFunctions::DateDiff(), impala::TimestampFunctions::DayName(), impala::TimestampFunctions::DayOfMonth(), impala::TimestampFunctions::DayOfWeek(), impala::TimestampFunctions::DayOfYear(), impala_udf::DebugString(), impala::AggregateFunctions::DecimalAvgAddOrRemove(), impala::AggregateFunctions::DecimalAvgInit(), impala::UdfBuiltins::DecodeVector(), impala::MathFunctions::Degrees(), impala::AggregateFunctions::DenseRankGetValue(), impala::DistinceEstimateFinalize(), impala::UdfBuiltins::EncodeVector(), impala::AnyValUtil::Equals(), impala::ExecNode::EvalConjuncts(), impala::HiveUdfCall::Evaluate(), impala::UdfBuiltins::Extract(), impala::StringFunctions::FindInSet(), impala::AggregateFunctions::FirstValUpdate(), impala::MathFunctions::FmodDouble(), impala::MathFunctions::FmodFloat(), impala::UtilityFunctions::FnvHashDecimal(), impala::UtilityFunctions::FnvHashString(), impala::UtilityFunctions::FnvHashTimestamp(), impala::TimestampValue::FromTimestampVal(), impala::TimestampFunctions::FromUnix(), impala::TimestampFunctions::FromUtc(), FuzzyCompare(), impala::AndPredicate::GetBooleanVal(), impala::OrPredicate::GetBooleanVal(), impala::GetVal(), impala::ExprContext::GetValue(), impala::MathFunctions::HexInt(), impala::MathFunctions::HexString(), impala::AggregateFunctions::HistogramFinalize(), HllFinalize(), impala::AggregateFunctions::HllFinalize(), HllInit(), impala::AggregateFunctions::HllInit(), HllMerge(), impala::AggregateFunctions::HllMerge(), HllSerialize(), HllUpdate(), impala::AggregateFunctions::HllUpdate(), impala::TimestampFunctions::Hour(), IncrementNdvFinalize(), impala::AggFnEvaluator::Init(), impala::StringFunctions::InitCap(), impala::AggregateFunctions::InitNull(), impala::AggregateFunctions::InitNullString(), impala::AggregateFunctions::InitZero(), impala::StringFunctions::Instr(), impala::ConditionalFunctions::IsFalse(), impala::UdfBuiltins::IsInf(), impala::UdfBuiltins::IsNan(), impala::ConditionalFunctions::IsNotFalse(), impala::IsNullPredicate::IsNotNull(), impala::ConditionalFunctions::IsNotTrue(), impala::IsNullPredicate::IsNull(), impala::ConditionalFunctions::IsTrue(), impala::AggregateFunctions::KnuthStddevFinalize(), impala::AggregateFunctions::KnuthStddevPopFinalize(), impala::AggregateFunctions::KnuthVarInit(), impala::AggregateFunctions::KnuthVarMerge(), impala::AggregateFunctions::KnuthVarPopFinalize(), impala::AggregateFunctions::KnuthVarUpdate(), impala::AggregateFunctions::LastValRemove(), impala::AggregateFunctions::LastValUpdate(), impala::StringFunctions::Length(), impala::LikePredicate::LikePrepare(), impala::StringFunctions::LocatePos(), impala::MathFunctions::Log(), impala::MathFunctions::Log2(), LogUdf(), impala::UdfBuiltins::Lower(), impala::StringFunctions::Lower(), impala::StringFunctions::Lpad(), impala::StringFunctions::Ltrim(), impala::AggregateFunctions::Max(), MemTestFinalize(), MemTestMerge(), MemTestSerialize(), MemTestUpdate(), impala::AggregateFunctions::Min(), Min3(), MinUpdate(), impala::TimestampFunctions::Minute(), impala::TimestampFunctions::Month(), impala::MathFunctions::Negative(), impala::CompoundPredicate::Not(), impala_udf::BooleanVal::null(), impala_udf::TinyIntVal::null(), impala_udf::SmallIntVal::null(), impala_udf::IntVal::null(), impala_udf::BigIntVal::null(), impala_udf::FloatVal::null(), impala_udf::DoubleVal::null(), impala_udf::TimestampVal::null(), null(), impala_udf::DecimalVal::null(), impala::ConditionalFunctions::NullIfZero(), impala_udf::BooleanVal::operator==(), impala_udf::TinyIntVal::operator==(), impala_udf::SmallIntVal::operator==(), impala_udf::IntVal::operator==(), impala_udf::BigIntVal::operator==(), impala_udf::FloatVal::operator==(), impala_udf::DoubleVal::operator==(), impala_udf::TimestampVal::operator==(), operator==(), impala::StringFunctions::ParseUrl(), impala::StringFunctions::ParseUrlKey(), impala::AggregateFunctions::PcFinalize(), impala::AggregateFunctions::PcInit(), impala::AggregateFunctions::PcMerge(), impala::AggregateFunctions::PcsaFinalize(), impala::MathFunctions::PmodBigInt(), impala::MathFunctions::PmodDouble(), impala::MathFunctions::Pow(), impala::AnalyticEvalNode::PrevRowCompare(), impala::MathFunctions::QuotientDouble(), impala::MathFunctions::Radians(), impala::MathFunctions::RandSeed(), impala::AggregateFunctions::RankFinalize(), impala::AggregateFunctions::RankGetValue(), impala::AggregateFunctions::RankInit(), impala::AggregateFunctions::RankUpdate(), impala::LikePredicate::RegexMatch(), impala::StringFunctions::RegexpExtract(), impala::LikePredicate::RegexPrepare(), impala::StringFunctions::RegexpReplace(), impala::StringFunctions::Repeat(), impala::TimestampFunctions::ReportBadFormat(), impala::AggregateFunctions::ReservoirSampleFinalize(), impala::AggregateFunctions::ReservoirSampleInit(), impala::AggregateFunctions::ReservoirSampleMerge(), impala::AggregateFunctions::ReservoirSampleSerialize(), impala::AggregateFunctions::ReservoirSampleUpdate(), impala::StringFunctions::Reverse(), impala::MathFunctions::Round(), impala::DecimalOperators::RoundDecimal(), impala::DecimalOperators::RoundDecimalNegativeScale(), impala::DecimalFunctions::RoundTo(), impala::MathFunctions::RoundUpTo(), impala::StringFunctions::Rpad(), impala::StringFunctions::Rtrim(), impala::TimestampFunctions::Second(), impala::AnyValUtil::SetAnyVal(), impala::AggFnEvaluator::SetDstSlot(), impala::MathFunctions::Sign(), impala::UtilityFunctions::Sleep(), impala::StringFunctions::Space(), impala::AggregateFunctions::StringConcatFinalize(), StringConcatInit(), StringConcatMerge(), impala::AggregateFunctions::StringConcatMerge(), StringConcatUpdate(), impala::AggregateFunctions::StringConcatUpdate(), impala::AggregateFunctions::StringValGetValue(), impala::AggregateFunctions::StringValSerializeOrFinalize(), impala::StringFunctions::Substring(), impala::AggregateFunctions::SumDecimalAddOrSubtract(), impala::AggregateFunctions::SumDecimalMerge(), SumSmallDecimalInit(), SumSmallDecimalMerge(), SumSmallDecimalUpdate(), impala::InPredicate::TemplatedIn(), TEST(), impala::TimestampFunctions::TimeAddSub(), impala::AggregateFunctions::TimestampAvgRemove(), impala::AggregateFunctions::TimestampAvgUpdate(), impala::TimestampFunctions::ToDate(), impala::TimestampValue::ToTimestampVal(), impala::TimestampFunctions::ToUtc(), impala::StringFunctions::Translate(), impala::StringFunctions::Trim(), impala::UdfBuiltins::Trunc(), impala::DecimalFunctions::TruncateTo(), impala::MathFunctions::Unhex(), impala::TimestampFunctions::Unix(), impala::TimestampFunctions::UnixAndFromUnixPrepare(), impala::TimestampFunctions::UnixFromString(), impala::StringFunctions::Upper(), UpperUdf(), VarSumMultiply(), impala::UdfBuiltins::VectorGet(), impala::TimestampFunctions::WeekOfYear(), XorInit(), and impala::TimestampFunctions::Year().

int impala_udf::StringVal::len

Definition at line 522 of file udf.h.

Referenced by impala::AggregateFunctions::AppxMedianFinalize(), impala::StringFunctions::Ascii(), impala::AggregateFunctions::AvgInit(), impala::AggregateFunctions::AvgMerge(), impala::AggregateFunctions::AvgRemove(), impala::AggregateFunctions::AvgUpdate(), impala::CastFunctions::CastToChar(), impala::DecimalOperators::CastToDecimalVal(), impala::CastFunctions::CastToStringVal(), impala::CastFunctions::CastToTimestampVal(), CheckHistogramDistribution(), impala::CompileRegex(), Concat(), impala::StringFunctions::ConcatWs(), impala::LikePredicate::ConstantEndsWithFn(), impala::LikePredicate::ConstantRegexFn(), impala::LikePredicate::ConstantRegexFnPartial(), impala::LikePredicate::ConstantStartsWithFn(), impala::LikePredicate::ConvertLikePattern(), impala::MathFunctions::ConvString(), impala::UtilityFunctions::CurrentDatabase(), impala_udf::DebugString(), impala::AggregateFunctions::DecimalAvgAddOrRemove(), impala::AggregateFunctions::DecimalAvgInit(), impala::AggregateFunctions::DecimalAvgMerge(), impala::UdfBuiltins::DecodeVector(), impala::AggregateFunctions::DenseRankGetValue(), impala::DistinceEstimateFinalize(), DistinctEstimateInit(), impala::UdfBuiltins::EncodeVector(), impala::UdfBuiltins::Extract(), impala::UdfBuiltins::ExtractPrepare(), impala::StringFunctions::FindInSet(), impala::AggregateFunctions::FirstValUpdate(), impala::UtilityFunctions::FnvHashString(), impala::StringValue::FromStringVal(), impala::TimestampFunctions::FromUnix(), impala::SlotRef::GetStringVal(), impala::ExprContext::GetValue(), impala::AnyValUtil::Hash(), impala::AnyValUtil::Hash64(), impala::MathFunctions::HexString(), impala::AggregateFunctions::HistogramFinalize(), HllFinalize(), impala::AggregateFunctions::HllFinalize(), HllInit(), impala::AggregateFunctions::HllInit(), HllMerge(), impala::AggregateFunctions::HllMerge(), HllSerialize(), HllUpdate(), impala::AggregateFunctions::HllUpdate(), IncrementNdvFinalize(), impala::AggFnEvaluator::Init(), impala::StringFunctions::InitCap(), impala::AggregateFunctions::InitNullString(), impala::AggregateFunctions::KnuthStddevFinalize(), impala::AggregateFunctions::KnuthStddevPopFinalize(), impala::AggregateFunctions::KnuthVarInit(), impala::AggregateFunctions::KnuthVarMerge(), impala::AggregateFunctions::KnuthVarPopFinalize(), impala::AggregateFunctions::KnuthVarUpdate(), impala::AggregateFunctions::LastValUpdate(), impala::StringFunctions::Length(), impala::StringFunctions::LocatePos(), LogUdf(), impala::UdfBuiltins::Lower(), impala::StringFunctions::Lower(), impala::StringFunctions::Lpad(), impala::StringFunctions::Ltrim(), impala::AggregateFunctions::Max(), impala::AggregateFunctions::Min(), MinUpdate(), operator==(), impala::AggregateFunctions::PcInit(), impala::AggregateFunctions::PcMerge(), impala::UdfBuiltins::PrintVector(), impala::AggregateFunctions::RankFinalize(), impala::AggregateFunctions::RankGetValue(), impala::AggregateFunctions::RankInit(), impala::AggregateFunctions::RankUpdate(), impala::LikePredicate::RegexMatch(), impala::StringFunctions::RegexpExtract(), impala::LikePredicate::RegexPrepare(), impala::StringFunctions::RegexpReplace(), impala::StringFunctions::Repeat(), impala::TimestampFunctions::ReportBadFormat(), impala::ReservoirSample< StringVal >::ReservoirSample(), impala::AggregateFunctions::ReservoirSampleFinalize(), impala::AggregateFunctions::ReservoirSampleInit(), impala::AggregateFunctions::ReservoirSampleMerge(), impala::AggregateFunctions::ReservoirSampleSerialize(), impala::AggregateFunctions::ReservoirSampleUpdate(), impala::StringFunctions::Reverse(), impala::StringFunctions::Right(), impala::StringFunctions::Rpad(), impala::StringFunctions::Rtrim(), MinState::Set(), impala::AnyValUtil::SetAnyVal(), impala::AggregateFunctions::StringConcatFinalize(), impala::AggregateFunctions::StringConcatMerge(), StringConcatUpdate(), impala::AggregateFunctions::StringConcatUpdate(), StringVal(), impala::AggregateFunctions::StringValGetValue(), impala::StringFunctions::Substring(), impala::AggregateFunctions::TimestampAvgRemove(), impala::AggregateFunctions::TimestampAvgUpdate(), impala::AnyValUtil::ToString(), impala::StringFunctions::Translate(), impala::StringFunctions::Trim(), impala::UdfBuiltins::Trunc(), impala::AnyValUtil::TruncateIfNecessary(), impala::UdfBuiltins::TruncPrepare(), impala::MathFunctions::Unhex(), impala::TimestampFunctions::Unix(), impala::TimestampFunctions::UnixFromString(), impala::StringFunctions::Upper(), UpperUdf(), ValidateMADlibVector(), VarSum(), and impala::UdfBuiltins::VectorGet().

uint8_t* impala_udf::StringVal::ptr

Definition at line 523 of file udf.h.

Referenced by impala::AggregateFunctions::AppxMedianFinalize(), impala::StringFunctions::Ascii(), impala::AggregateFunctions::AvgFinalize(), impala::AggregateFunctions::AvgGetValue(), impala::AggregateFunctions::AvgInit(), impala::AggregateFunctions::AvgMerge(), impala::AggregateFunctions::AvgRemove(), impala::AggregateFunctions::AvgUpdate(), impala::CastFunctions::CastToChar(), impala::DecimalOperators::CastToDecimalVal(), impala::CastFunctions::CastToStringVal(), impala::CastFunctions::CastToTimestampVal(), impala::StringFunctions::CharLength(), CheckHistogramDistribution(), impala::CompileRegex(), Concat(), impala::StringFunctions::ConcatWs(), impala::LikePredicate::ConstantEndsWithFn(), impala::LikePredicate::ConstantRegexFn(), impala::LikePredicate::ConstantRegexFnPartial(), impala::LikePredicate::ConstantStartsWithFn(), impala::LikePredicate::ConvertLikePattern(), impala::MathFunctions::ConvString(), impala_udf::DebugString(), impala::AggregateFunctions::DecimalAvgAddOrRemove(), impala::AggregateFunctions::DecimalAvgFinalize(), impala::AggregateFunctions::DecimalAvgGetValue(), impala::AggregateFunctions::DecimalAvgInit(), impala::AggregateFunctions::DecimalAvgMerge(), impala::UdfBuiltins::DecodeVector(), impala::AggregateFunctions::DenseRankGetValue(), impala::DistinceEstimateFinalize(), DistinctEstimateInit(), DistinctEstimateMerge(), DistinctEstimatUpdate(), impala::UdfBuiltins::EncodeVector(), impala::UdfBuiltins::Extract(), impala::UdfBuiltins::ExtractPrepare(), impala::StringFunctions::FindInSet(), impala::AggregateFunctions::FirstValUpdate(), impala::UtilityFunctions::FnvHashString(), impala::AnyValUtil::FromBuffer(), impala::StringValue::FromStringVal(), impala::TimestampFunctions::FromUnix(), impala::SlotRef::GetStringVal(), impala::ExprContext::GetValue(), impala::ReservoirSample< StringVal >::GetValue(), impala::AnyValUtil::Hash(), impala::AnyValUtil::Hash64(), impala::MathFunctions::HexString(), impala::AggregateFunctions::HistogramFinalize(), HllFinalize(), impala::AggregateFunctions::HllFinalize(), HllInit(), impala::AggregateFunctions::HllInit(), HllMerge(), impala::AggregateFunctions::HllMerge(), HllSerialize(), HllUpdate(), impala::AggregateFunctions::HllUpdate(), IncrementNdvFinalize(), impala::AggFnEvaluator::Init(), impala::StringFunctions::InitCap(), impala::AggregateFunctions::InitNullString(), impala::AggregateFunctions::KnuthStddevFinalize(), impala::AggregateFunctions::KnuthStddevPopFinalize(), impala::AggregateFunctions::KnuthVarFinalize(), impala::AggregateFunctions::KnuthVarInit(), impala::AggregateFunctions::KnuthVarMerge(), impala::AggregateFunctions::KnuthVarPopFinalize(), impala::AggregateFunctions::KnuthVarUpdate(), impala::AggregateFunctions::LastValRemove(), impala::AggregateFunctions::LastValUpdate(), impala::LikePredicate::LikePrepare(), impala::StringFunctions::LocatePos(), LogUdf(), impala::UdfBuiltins::Lower(), impala::StringFunctions::Lower(), impala::StringFunctions::Lpad(), impala::StringFunctions::Ltrim(), impala::AggregateFunctions::Max(), impala::AggregateFunctions::Min(), MinFinalize(), MinSerialize(), MinUpdate(), NoArgs(), operator==(), impala::AggregateFunctions::PcFinalize(), impala::AggregateFunctions::PcInit(), impala::AggregateFunctions::PcMerge(), impala::AggregateFunctions::PcsaFinalize(), impala::AggregateFunctions::PcsaUpdate(), impala::AggregateFunctions::PcUpdate(), impala::UdfBuiltins::PrintVector(), impala::AggregateFunctions::RankFinalize(), impala::AggregateFunctions::RankGetValue(), impala::AggregateFunctions::RankInit(), impala::AggregateFunctions::RankUpdate(), impala::LikePredicate::RegexMatch(), impala::StringFunctions::RegexpExtract(), impala::LikePredicate::RegexPrepare(), impala::StringFunctions::RegexpReplace(), impala::StringFunctions::Repeat(), impala::ReservoirSample< StringVal >::ReservoirSample(), impala::AggregateFunctions::ReservoirSampleFinalize(), impala::AggregateFunctions::ReservoirSampleInit(), impala::AggregateFunctions::ReservoirSampleMerge(), impala::AggregateFunctions::ReservoirSampleSerialize(), impala::AggregateFunctions::ReservoirSampleUpdate(), impala::StringFunctions::Reverse(), impala::StringFunctions::Rpad(), impala::StringFunctions::Rtrim(), MinState::Set(), impala::AnyValUtil::SetAnyVal(), impala::StringFunctions::Space(), impala::AggregateFunctions::StringConcatFinalize(), impala::AggregateFunctions::StringConcatMerge(), StringConcatUpdate(), impala::AggregateFunctions::StringConcatUpdate(), impala::AggregateFunctions::StringValGetValue(), impala::AggregateFunctions::StringValSerializeOrFinalize(), impala::StringFunctions::Substring(), impala::AggregateFunctions::TimestampAvgFinalize(), impala::AggregateFunctions::TimestampAvgGetValue(), impala::AggregateFunctions::TimestampAvgRemove(), impala::AggregateFunctions::TimestampAvgUpdate(), impala::AnyValUtil::ToString(), impala::UdfBuiltins::ToVector(), impala::StringFunctions::Translate(), impala::StringFunctions::Trim(), impala::UdfBuiltins::Trunc(), impala::UdfBuiltins::TruncPrepare(), impala::MathFunctions::Unhex(), impala::TimestampFunctions::Unix(), impala::TimestampFunctions::UnixFromString(), impala::StringFunctions::Upper(), UpperUdf(), ValidateMADlibVector(), and impala::UdfBuiltins::VectorGet().


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