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

Method toString

bolt/expression/tests/ExprEncodingsTest.cpp:90–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88 }
89
90 std::string toString() const {
91 std::stringstream out;
92 out << mapSimpleToName(encoding) << ", " << cardinality << " rows";
93
94 switch (encoding) {
95 case VectorEncoding::Simple::FLAT:
96 break;
97 case VectorEncoding::Simple::DICTIONARY:
98 if (indices) {
99 out << " shared indices";
100 } else {
101 out << " null every " << nullFrequency;
102 }
103 break;
104 case VectorEncoding::Simple::CONSTANT:
105 out << " base index " << constantIndex;
106 break;
107 default:;
108 }
109
110 return out.str();
111 }
112};
113
114std::string toString(const std::vector<EncodingOptions>& options) {

Callers 2

toStringFunction · 0.45
assertEqualRowsMethod · 0.45

Calls 2

mapSimpleToNameFunction · 0.85
strMethod · 0.80

Tested by

no test coverage detected