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

Method equalValueAt

bolt/vector/BaseVector.cpp:267–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265}
266
267std::optional<bool> BaseVector::equalValueAt(
268 const BaseVector* other,
269 vector_size_t index,
270 vector_size_t otherIndex,
271 CompareFlags::NullHandlingMode nullHandlingMode) const {
272 const CompareFlags compareFlags = CompareFlags::equality(nullHandlingMode);
273 std::optional<int32_t> result =
274 compare(other, index, otherIndex, compareFlags);
275 if (result.has_value()) {
276 return result.value() == 0;
277 }
278
279 return std::nullopt;
280}
281
282template <TypeKind kind>
283static VectorPtr createEmpty(

Callers 15

TEST_FFunction · 0.80
assertVectorContentMethod · 0.80
TEST_FFunction · 0.80
testConstantMethod · 0.80
TEST_FFunction · 0.80
TYPED_TESTFunction · 0.80
testCopyEncodedMethod · 0.80
testCopyFromAllNullsMethod · 0.80
testSliceMethod · 0.80

Calls 3

has_valueMethod · 0.80
compareFunction · 0.70
valueMethod · 0.45

Tested by 15

TEST_FFunction · 0.64
assertVectorContentMethod · 0.64
TEST_FFunction · 0.64
testConstantMethod · 0.64
TEST_FFunction · 0.64
TYPED_TESTFunction · 0.64
testCopyEncodedMethod · 0.64
testCopyFromAllNullsMethod · 0.64
testSliceMethod · 0.64