MCPcopy Create free account
hub / github.com/apache/arrow / Get

Method Get

cpp/src/arrow/util/hashing.h:675–683  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

673 }
674
675 int32_t Get(const void* data, builder_offset_type length) const {
676 hash_t h = ComputeStringHash<0>(data, length);
677 auto p = Lookup(h, data, length);
678 if (p.second) {
679 return p.first->payload.memo_index;
680 } else {
681 return kKeyNotFound;
682 }
683 }
684
685 int32_t Get(std::string_view value) const {
686 return Get(value.data(), static_cast<builder_offset_type>(value.length()));

Callers

nothing calls this directly

Calls 3

GetFunction · 0.70
dataMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected