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

Method getVector

bolt/duckdb/conversion/DuckWrapper.cpp:120–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120RowVectorPtr DuckResult::getVector() {
121 auto rowType = getType();
122 std::vector<VectorPtr> outputColumns;
123 outputColumns.reserve(columnCount());
124 for (auto i = 0; i < columnCount(); i++) {
125 outputColumns.push_back(getVector(i));
126 }
127
128 return std::make_shared<RowVector>(
129 context_->pool(),
130 rowType,
131 BufferPtr(nullptr),
132 currentChunk_->size(),
133 outputColumns);
134}
135
136TypePtr DuckResult::getType(size_t columnIdx) {
137 assert(columnIdx < queryResult_->types.size());

Callers 2

verifyUnaryResultMethod · 0.45

Calls 7

getTypeFunction · 0.85
getVectorFunction · 0.85
toBoltVectorFunction · 0.85
reserveMethod · 0.45
push_backMethod · 0.45
poolMethod · 0.45
sizeMethod · 0.45

Tested by 2

verifyUnaryResultMethod · 0.36