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

Function createVectorPrinter

bolt/vector/VectorPrinter.cpp:266–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264};
265
266std::unique_ptr<VectorPrinter> createVectorPrinter(const BaseVector& vector) {
267 switch (vector.typeKind()) {
268 case TypeKind::ARRAY:
269 return std::make_unique<ArrayVectorPrinter>(vector);
270 case TypeKind::MAP:
271 return std::make_unique<MapVectorPrinter>(vector);
272 case TypeKind::ROW:
273 return std::make_unique<RowVectorPrinter>(vector);
274 default:
275 return std::make_unique<PrimitiveVectorPrinter>(vector);
276 }
277}
278
279void printSizeAndNullCount(const BaseVector& vector, std::ostringstream& out) {
280 out << vector.size() << " elements, ";

Callers 4

ArrayVectorPrinterMethod · 0.85
MapVectorPrinterMethod · 0.85
RowVectorPrinterMethod · 0.85
printVectorFunction · 0.85

Calls 1

typeKindMethod · 0.45

Tested by

no test coverage detected