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

Function GetDataSize

be/src/runtime/sorter.cc:767–769  ·  view source on GitHub ↗

Helpers for Sorter::Run::ConvertValueOffsetsToPtr() to get the data size based on the type.

Source from the content-addressed store, hash-verified

765// Helpers for Sorter::Run::ConvertValueOffsetsToPtr() to get the data size based on the
766// type.
767int64_t GetDataSize(const StringValue& string_value, const SlotDescriptor& slot_desc) {
768 return string_value.IsSmall() ? 0 : string_value.Len();
769}
770
771int64_t GetDataSize(const CollectionValue& collection_value,
772 const SlotDescriptor& slot_desc) {

Callers 1

Calls 4

IsSmallMethod · 0.45
LenMethod · 0.45
ByteSizeMethod · 0.45

Tested by

no test coverage detected