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

Method compare

bolt/exec/Spill.cpp:48–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48int32_t SpillMergeStream::compare(const MergeStream& other) const {
49 BOLT_CHECK(!closed_);
50 const auto& otherStream = static_cast<const SpillMergeStream&>(other);
51 const auto& children = rowVector_->children();
52 const auto& otherChildren = otherStream.current().children();
53 for (const auto& [key, compareFlags] : sortingKeys()) {
54 const auto result = children[key]
55 ->compare(
56 otherChildren[key].get(),
57 index_,
58 otherStream.index_,
59 compareFlags)
60 .value();
61 if (result != 0) {
62 return result;
63 }
64 }
65 return 0;
66}
67
68void SpillMergeStream::close() {
69 BOLT_CHECK(!closed_);

Callers 15

verifyMapColumnEqualFunction · 0.45
CheckReadValuesMethod · 0.45
CheckReadValuesMethod · 0.45
HandleAadPrefixMethod · 0.45
HandleAadPrefixMethod · 0.45
sortPartitionsMethod · 0.45
compareRowsWithKeysMethod · 0.45
compareSimpleFunction · 0.45
operator<Method · 0.45
noMoreInputMethod · 0.45

Calls 4

childrenMethod · 0.45
currentMethod · 0.45
valueMethod · 0.45
getMethod · 0.45

Tested by 5

verifyMapColumnEqualFunction · 0.36
CheckReadValuesMethod · 0.36
CheckReadValuesMethod · 0.36
HandleAadPrefixMethod · 0.36
TEST_FFunction · 0.36