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

Method validate

bolt/vector/SimpleVector.cpp:35–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33
34template <>
35void SimpleVector<StringView>::validate(
36 const VectorValidateOptions& options) const {
37 BaseVector::validate(options);
38
39 // We only validate the right size of ascii info, if it has any selection.
40 auto rlockedAsciiComputedRows{asciiInfo.readLockedAsciiComputedRows()};
41 if (rlockedAsciiComputedRows->hasSelections()) {
42 BOLT_CHECK_GE(rlockedAsciiComputedRows->size(), size());
43 }
44}
45
46} // namespace bytedance::bolt

Callers

nothing calls this directly

Calls 5

sizeFunction · 0.85
hasSelectionsMethod · 0.80
validateFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected