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

Function checkVectorFlagsSetTyped

bolt/vector/tests/VectorTestUtils.cpp:153–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151
152template <TypeKind kind>
153void checkVectorFlagsSetTyped(
154 const BaseVector& vector,
155 const SelectivityVector& asciiSetRows) {
156 using T = typename TypeTraits<kind>::NativeType;
157 auto* simpleVector = vector.as<SimpleVector<T>>();
158
159 checkBaseVectorFlagsSet(vector);
160 EXPECT_TRUE(simpleVector->getStats().min.has_value());
161 EXPECT_TRUE(simpleVector->getStats().max.has_value());
162 EXPECT_TRUE(simpleVector->isSorted().has_value());
163 if constexpr (std::is_same_v<T, StringView>) {
164 asciiSetRows.applyToSelected([&](auto row) {
165 EXPECT_TRUE(
166 simpleVector->isNullAt(row) ||
167 simpleVector->isAscii(row).has_value());
168 });
169 }
170}
171
172template <>
173void checkVectorFlagsSetTyped<TypeKind::MAP>(

Callers

nothing calls this directly

Calls 7

checkBaseVectorFlagsSetFunction · 0.85
has_valueMethod · 0.80
applyToSelectedMethod · 0.80
isAsciiMethod · 0.80
getStatsMethod · 0.45
isSortedMethod · 0.45
isNullAtMethod · 0.45

Tested by

no test coverage detected