MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / getCompareEntryFunc

Function getCompareEntryFunc

src/processor/result/base_hash_table.cpp:218–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216}
217
218static compare_function_t getCompareEntryFunc(const LogicalType& type) {
219 compare_function_t func;
220 switch (type.getLogicalTypeID()) {
221 case LogicalTypeID::NODE: {
222 func = compareNodeEntry;
223 } break;
224 case LogicalTypeID::REL: {
225 func = compareRelEntry;
226 } break;
227 default: {
228 TypeUtils::visit(
229 type.getPhysicalType(), [&]<HashableTypes T>(T) { func = compareEntry<T>; },
230 [](auto) { UNREACHABLE_CODE; });
231 }
232 }
233 return func;
234}
235
236static ft_compare_function_t getFactorizedTableCompareEntryFunc(const LogicalType& type) {
237 ft_compare_function_t func;

Callers 3

initCompareFuncsMethod · 0.85

Calls 3

getLogicalTypeIDMethod · 0.80
visitFunction · 0.50
getPhysicalTypeMethod · 0.45

Tested by

no test coverage detected