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

Method toString

bolt/vector/BaseVector.cpp:530–549  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

528}
529
530std::string BaseVector::toString(bool recursive) const {
531 std::stringstream out;
532 out << toSummaryString();
533
534 if (recursive) {
535 switch (encoding()) {
536 case VectorEncoding::Simple::DICTIONARY:
537 case VectorEncoding::Simple::SEQUENCE:
538 case VectorEncoding::Simple::CONSTANT:
539 if (valueVector() != nullptr) {
540 out << ", " << valueVector()->toString(true);
541 }
542 break;
543 default:
544 break;
545 }
546 }
547
548 return out.str();
549}
550
551std::string BaseVector::toString(vector_size_t index) const {
552 BOLT_CHECK_LT(index, length_, "Vector index should be less than length.");

Callers 15

toSummaryStringMethod · 0.45
writeRowVectorFunction · 0.45
compareMethod · 0.45
printFixedWidthFunction · 0.45
summarizeMethod · 0.45
printNonNullMethod · 0.45
summarizeNonNullMethod · 0.45
summarizeNonNullMethod · 0.45
summarizeNonNullMethod · 0.45
summarizeNonNullMethod · 0.45

Calls 5

strMethod · 0.80
encodingFunction · 0.70
isNullAtFunction · 0.70
toStringFunction · 0.70
maxFunction · 0.50

Tested by 15

TEST_FFunction · 0.36
assertVectorContentMethod · 0.36
TEST_FFunction · 0.36
assertNullsMethod · 0.36
testConstantMethod · 0.36
testConstantNullMethod · 0.36
testTypeRoundTripMethod · 0.36
testCopyEncodedMethod · 0.36
testCopyFromAllNullsMethod · 0.36