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

#include <string-functions.h>

Collaboration diagram for impala::StringFunctions:

Static Public Member Functions

static StringVal Substring (FunctionContext *, const StringVal &str, const BigIntVal &pos, const BigIntVal &len)
 
static StringVal Substring (FunctionContext *, const StringVal &str, const BigIntVal &pos)
 
static StringVal Left (FunctionContext *, const StringVal &str, const BigIntVal &len)
 
static StringVal Right (FunctionContext *, const StringVal &str, const BigIntVal &len)
 
static StringVal Space (FunctionContext *, const BigIntVal &len)
 
static StringVal Repeat (FunctionContext *, const StringVal &str, const BigIntVal &n)
 
static StringVal Lpad (FunctionContext *, const StringVal &str, const BigIntVal &len, const StringVal &pad)
 
static StringVal Rpad (FunctionContext *, const StringVal &str, const BigIntVal &, const StringVal &pad)
 
static IntVal Length (FunctionContext *, const StringVal &str)
 
static IntVal CharLength (FunctionContext *, const StringVal &str)
 
static StringVal Lower (FunctionContext *, const StringVal &str)
 
static StringVal Upper (FunctionContext *, const StringVal &str)
 
static StringVal InitCap (FunctionContext *, const StringVal &str)
 
static StringVal Reverse (FunctionContext *, const StringVal &str)
 
static StringVal Translate (FunctionContext *, const StringVal &str, const StringVal &src, const StringVal &dst)
 
static StringVal Trim (FunctionContext *, const StringVal &str)
 
static StringVal Ltrim (FunctionContext *, const StringVal &str)
 
static StringVal Rtrim (FunctionContext *, const StringVal &str)
 
static IntVal Ascii (FunctionContext *, const StringVal &str)
 
static IntVal Instr (FunctionContext *, const StringVal &str, const StringVal &substr)
 
static IntVal Locate (FunctionContext *, const StringVal &substr, const StringVal &str)
 
static IntVal LocatePos (FunctionContext *, const StringVal &substr, const StringVal &str, const BigIntVal &start_pos)
 
static void RegexpPrepare (FunctionContext *, FunctionContext::FunctionStateScope)
 
static void RegexpClose (FunctionContext *, FunctionContext::FunctionStateScope)
 
static StringVal RegexpExtract (FunctionContext *, const StringVal &str, const StringVal &pattern, const BigIntVal &index)
 
static StringVal RegexpReplace (FunctionContext *, const StringVal &str, const StringVal &pattern, const StringVal &replace)
 
static StringVal Concat (FunctionContext *, int num_children, const StringVal *strs)
 
static StringVal ConcatWs (FunctionContext *, const StringVal &sep, int num_children, const StringVal *strs)
 
static IntVal FindInSet (FunctionContext *, const StringVal &str, const StringVal &str_set)
 
static void ParseUrlPrepare (FunctionContext *, FunctionContext::FunctionStateScope)
 
static StringVal ParseUrl (FunctionContext *, const StringVal &url, const StringVal &part)
 
static StringVal ParseUrlKey (FunctionContext *, const StringVal &url, const StringVal &key, const StringVal &part)
 
static void ParseUrlClose (FunctionContext *, FunctionContext::FunctionStateScope)
 

Detailed Description

Definition at line 30 of file string-functions.h.

Member Function Documentation

IntVal impala::StringFunctions::Ascii ( FunctionContext context,
const StringVal str 
)
static
StringVal impala::StringFunctions::Concat ( FunctionContext context,
int  num_children,
const StringVal strs 
)
static

Definition at line 409 of file string-functions.cc.

StringVal impala::StringFunctions::ConcatWs ( FunctionContext context,
const StringVal sep,
int  num_children,
const StringVal strs 
)
static
IntVal impala::StringFunctions::FindInSet ( FunctionContext context,
const StringVal str,
const StringVal str_set 
)
static
StringVal impala::StringFunctions::InitCap ( FunctionContext context,
const StringVal str 
)
static
IntVal impala::StringFunctions::Instr ( FunctionContext context,
const StringVal str,
const StringVal substr 
)
static
StringVal impala::StringFunctions::Left ( FunctionContext context,
const StringVal str,
const BigIntVal len 
)
static

Definition at line 60 of file string-functions.cc.

IntVal impala::StringFunctions::Length ( FunctionContext context,
const StringVal str 
)
static
IntVal impala::StringFunctions::Locate ( FunctionContext context,
const StringVal substr,
const StringVal str 
)
static

Definition at line 281 of file string-functions.cc.

IntVal impala::StringFunctions::LocatePos ( FunctionContext context,
const StringVal substr,
const StringVal str,
const BigIntVal start_pos 
)
static
StringVal impala::StringFunctions::Lower ( FunctionContext context,
const StringVal str 
)
static
StringVal impala::StringFunctions::Lpad ( FunctionContext context,
const StringVal str,
const BigIntVal len,
const StringVal pad 
)
static
StringVal impala::StringFunctions::Ltrim ( FunctionContext context,
const StringVal str 
)
static
void impala::StringFunctions::ParseUrlClose ( FunctionContext ctx,
FunctionContext::FunctionStateScope  scope 
)
static
void impala::StringFunctions::RegexpClose ( FunctionContext context,
FunctionContext::FunctionStateScope  scope 
)
static
StringVal impala::StringFunctions::Repeat ( FunctionContext context,
const StringVal str,
const BigIntVal n 
)
static
StringVal impala::StringFunctions::Reverse ( FunctionContext context,
const StringVal str 
)
static
StringVal impala::StringFunctions::Right ( FunctionContext context,
const StringVal str,
const BigIntVal len 
)
static

Definition at line 66 of file string-functions.cc.

References impala_udf::StringVal::len, and impala_udf::BigIntVal::val.

StringVal impala::StringFunctions::Rpad ( FunctionContext context,
const StringVal str,
const BigIntVal len,
const StringVal pad 
)
static
StringVal impala::StringFunctions::Rtrim ( FunctionContext context,
const StringVal str 
)
static
StringVal impala::StringFunctions::Space ( FunctionContext context,
const BigIntVal len 
)
static
StringVal impala::StringFunctions::Substring ( FunctionContext context,
const StringVal str,
const BigIntVal pos,
const BigIntVal len 
)
static
StringVal impala::StringFunctions::Substring ( FunctionContext context,
const StringVal str,
const BigIntVal pos 
)
static

Definition at line 53 of file string-functions.cc.

StringVal impala::StringFunctions::Translate ( FunctionContext context,
const StringVal str,
const StringVal src,
const StringVal dst 
)
static
StringVal impala::StringFunctions::Trim ( FunctionContext context,
const StringVal str 
)
static
StringVal impala::StringFunctions::Upper ( FunctionContext context,
const StringVal str 
)
static

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