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

Method Lookup

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

Source from the content-addressed store, hash-verified

888 int32_t null_index_ = kKeyNotFound;
889
890 std::pair<const HashTableEntry*, bool> Lookup(hash_t h, const void* data,
891 builder_offset_type length) const {
892 auto cmp_func = [&](const Payload* payload) {
893 std::string_view lhs = binary_builder_.GetView(payload->memo_index);
894 std::string_view rhs(static_cast<const char*>(data), length);
895 return lhs == rhs;
896 };
897 return hash_table_.Lookup(h, cmp_func);
898 }
899
900 public:
901 Status MergeTable(const BinaryMemoTable& other_table) {

Callers

nothing calls this directly

Calls 2

GetViewMethod · 0.45
LookupMethod · 0.45

Tested by

no test coverage detected