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

Method Smallify

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

!!! THIS IS UNSAFE TO CALL ON EXISTING STRINGVALUE OBJECTS !!! Please make sure you only invoke it for newly created StringValues, e.g. on the target StringValue object of a deep copy operation. Tries to apply Small String Optimization if possible. Returns 'true' on success, 'false' otherwise. In the latter case the object remains unmodified. !!! THIS IS UNSAFE TO CALL ON EXISTING STRINGVALUE OBJE

Source from the content-addressed store, hash-verified

204 /// 'false' otherwise. In the latter case the object remains unmodified.
205 /// !!! THIS IS UNSAFE TO CALL ON EXISTING STRINGVALUE OBJECTS !!!
206 bool Smallify() { return string_impl_.Smallify(); }
207
208 SmallableString string_impl_;
209};

Callers 8

BYTE_ARRAY>Method · 0.45
TryDeepCopyStringsMethod · 0.45
DeepCopyVarlenDataMethod · 0.45
SmallifySVMethod · 0.45
SmallifySVExpectMethod · 0.45
TestLeastLargerStringMethod · 0.45
MakeSmallStringFromMethod · 0.45

Calls

no outgoing calls

Tested by 4

SmallifySVMethod · 0.36
SmallifySVExpectMethod · 0.36
TestLeastLargerStringMethod · 0.36