MCPcopy Create free account
hub / github.com/bytedance/bolt / equalTo

Method equalTo

bolt/exec/AddressableNonNullValueList.cpp:87–102  ·  view source on GitHub ↗

static

Source from the content-addressed store, hash-verified

85
86// static
87bool AddressableNonNullValueList::equalTo(
88 const Entry& left,
89 const Entry& right,
90 const TypePtr& type) {
91 if (left.hash != right.hash) {
92 return false;
93 }
94
95 auto leftStream = prepareRead(left);
96 auto rightStream = prepareRead(right);
97
98 CompareFlags compareFlags =
99 CompareFlags::equality(CompareFlags::NullHandlingMode::kNullAsValue);
100 return exec::ContainerRowSerde::compare(
101 *leftStream, *rightStream, type.get(), compareFlags) == 0;
102}
103
104// static
105void AddressableNonNullValueList::read(

Callers

nothing calls this directly

Calls 3

prepareReadFunction · 0.85
compareFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected