16 #ifndef IMPALA_RUNTIME_STRING_VALUE_H
17 #define IMPALA_RUNTIME_STRING_VALUE_H
48 :
ptr(const_cast<char*>(s.c_str())),
len(s.size()) {
56 :
ptr(const_cast<char*>(s)),
len(strlen(s)) {
109 inline static void PadWithSpaces(
char* cptr, int64_t cptr_len, int64_t num_chars);
129 std::ostream&
operator<<(std::ostream& os,
const StringValue& string_value);
bool Eq(const StringValue &other) const
==
bool Ge(const StringValue &other) const
>=
bool operator<(const StringValue &other) const
bool operator!=(const StringValue &other) const
bool operator<=(const StringValue &other) const
bool operator>(const StringValue &other) const
bool Lt(const StringValue &other) const
<
static void PadWithSpaces(char *cptr, int64_t cptr_len, int64_t num_chars)
std::size_t hash_value(const Decimal4Value &v)
This function must be called 'hash_value' to be picked up by boost.
StringValue Trim() const
Trims leading and trailing spaces.
static int64_t UnpaddedCharLength(const char *cptr, int64_t len)
Returns number of characters in a char array (ignores trailing spaces)
bool operator==(const StringValue &other) const
int Compare(const StringValue &other) const
static uint32_t Hash(const void *data, int32_t bytes, uint32_t seed)
bool Le(const StringValue &other) const
<=
bool operator>=(const StringValue &other) const
static StringValue FromStringVal(const impala_udf::StringVal &sv)
StringValue(const std::string &s)
StringValue Substring(int start_pos) const
Returns the substring starting at start_pos until the end of string.
static char * CharSlotToPtr(void *slot, const ColumnType &type)
static const char * LLVM_CLASS_NAME
For C++/IR interop, we need to be able to look up types by name.
StringValue(char *ptr, int len)
bool Gt(const StringValue &other) const
>
ostream & operator<<(ostream &os, const map< TNetworkAddress, llama::TAllocatedResource > &resources)
void ToStringVal(impala_udf::StringVal *sv) const
StringValue(const char *s)
bool Ne(const StringValue &other) const
!=
std::string DebugString() const