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

Method summarizeNonNull

bolt/vector/VectorPrinter.cpp:112–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110 }
111
112 std::string summarizeNonNull(vector_size_t index) const override {
113 auto* base = decoded_.base();
114 if (base->typeKind() == TypeKind::VARCHAR ||
115 base->typeKind() == TypeKind::VARBINARY) {
116 return fmt::format(
117 "{} size: {}",
118 base->type()->toString(),
119 decoded_.valueAt<StringView>(index).size());
120 } else {
121 return base->type()->toString();
122 }
123 }
124};
125
126class ArrayVectorPrinter : public VectorPrinter {

Callers

nothing calls this directly

Calls 5

baseMethod · 0.45
typeKindMethod · 0.45
toStringMethod · 0.45
typeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected