MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / getResultSet

Method getResultSet

src/processor/operator/sink.cpp:9–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7namespace processor {
8
9std::unique_ptr<ResultSet> Sink::getResultSet(storage::MemoryManager* memoryManager) {
10 if (resultSetDescriptor == nullptr) {
11 // Some pipeline does not need a resultSet, e.g. OrderByMerge
12 return std::unique_ptr<ResultSet>();
13 }
14 return std::make_unique<ResultSet>(resultSetDescriptor.get(), memoryManager);
15}
16
17std::unique_ptr<main::QueryResult> SimpleSink::getQueryResult() const {
18 return std::make_unique<main::MaterializedQueryResult>(messageTable);

Callers 1

runMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected