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

Method Lookup

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

Source from the content-addressed store, hash-verified

897 int32_t null_index_ = kKeyNotFound;
898
899 std::pair<const HashTableEntry*, bool> Lookup(hash_t h, const void* data,
900 builder_offset_type length) const {
901 auto cmp_func = [&](const Payload* payload) {
902 std::string_view lhs = binary_builder_.GetView(payload->memo_index);
903 std::string_view rhs(static_cast<const char*>(data), length);
904 return lhs == rhs;
905 };
906 return hash_table_.Lookup(h, cmp_func);
907 }
908
909 public:
910 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