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

Method hasUniqueKeys

bolt/exec/tests/utils/QueryAssertions.cpp:775–783  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

773}
774
775bool MaterializedRowEpsilonComparator::hasUniqueKeys(
776 const std::vector<MaterializedRow>& sortedRows) const {
777 for (auto i = 1; i < sortedRows.size(); ++i) {
778 if (equalKeys(sortedRows[i], sortedRows[i - 1])) {
779 return false;
780 }
781 }
782 return true;
783}
784
785bool MaterializedRowEpsilonComparator::sortByUniqueKey(
786 const MaterializedRowMultiset& expected,

Callers

nothing calls this directly

Calls 2

equalKeysFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected