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

Method printNonNull

bolt/vector/VectorPrinter.cpp:244–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242
243 protected:
244 std::string printNonNull(vector_size_t index, const std::string& indent)
245 const override {
246 std::stringstream out;
247
248 auto rowIndex = decoded_.index(index);
249
250 const auto& rowType = decoded_.base()->type()->asRow();
251
252 for (auto i = 0; i < rowType.size(); ++i) {
253 out << indent << "Field " << rowType.nameOf(i) << ": "
254 << children_[i]->summarize(rowIndex) << std::endl;
255 out << children_[i]->print(rowIndex, addIndent(indent));
256 }
257
258 return out.str();
259 }
260
261 std::string summarizeNonNull(vector_size_t /* index */) const override {
262 return decoded_.base()->type()->toString();

Callers

nothing calls this directly

Calls 9

addIndentFunction · 0.85
summarizeMethod · 0.80
strMethod · 0.80
indexMethod · 0.45
typeMethod · 0.45
baseMethod · 0.45
sizeMethod · 0.45
nameOfMethod · 0.45
printMethod · 0.45

Tested by

no test coverage detected