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

Method toString

bolt/vector/SimpleVector.h:229–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227 }
228
229 std::string toString(vector_size_t index) const override {
230 BOLT_CHECK_LT(index, length_, "Vector index should be less than length.");
231 std::stringstream out;
232 if (isNullAt(index)) {
233 out << "null";
234 } else {
235 out << valueToString(valueAt(index));
236 }
237 return out.str();
238 }
239
240 /// This function takes a SelectivityVector and a mapping from the index's in
241 /// the SelectivityVector to corresponding indexes in this vector. Then we

Callers

nothing calls this directly

Calls 3

valueToStringFunction · 0.85
strMethod · 0.80
isNullAtFunction · 0.70

Tested by

no test coverage detected