MCPcopy Create free account
hub / github.com/apache/impala / MakeSmallStringFrom

Method MakeSmallStringFrom

be/src/runtime/string-value.h:72–78  ·  view source on GitHub ↗

Only valid to call if source's length is small enough. Returns a StringValue object that is smallified.

Source from the content-addressed store, hash-verified

70 /// Only valid to call if source's length is small enough. Returns a StringValue object
71 /// that is smallified.
72 static StringValue MakeSmallStringFrom(const StringValue& source) {
73 DCHECK_LE(source.Len(), SmallableString::SMALL_LIMIT);
74 StringValue sv(source);
75 sv.Smallify();
76 DCHECK(sv.IsSmall());
77 return sv;
78 }
79
80 void Assign(const StringValue& other) { string_impl_.Assign(other.string_impl_); }
81

Callers

nothing calls this directly

Calls 3

LenMethod · 0.45
SmallifyMethod · 0.45
IsSmallMethod · 0.45

Tested by

no test coverage detected