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

Method toString

bolt/vector/ComplexVector.cpp:415–430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

413}
414
415std::string RowVector::toString(vector_size_t index) const {
416 BOLT_CHECK_LT(index, length_, "Vector index should be less than length.");
417 if (isNullAt(index)) {
418 return "null";
419 }
420 std::stringstream out;
421 out << "{";
422 for (int32_t i = 0; i < children_.size(); ++i) {
423 if (i > 0) {
424 out << ", ";
425 }
426 out << (children_[i] ? children_[i]->toString(index) : "<not set>");
427 }
428 out << "}";
429 return out.str();
430}
431
432void RowVector::ensureWritable(const SelectivityVector& rows) {
433 for (int i = 0; i < childrenSize_; i++) {

Callers

nothing calls this directly

Calls 4

strMethod · 0.80
isNullAtFunction · 0.70
sizeMethod · 0.45

Tested by

no test coverage detected