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

Method createDataSource

bolt/exec/tests/AsyncConnectorTest.cpp:155–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153 TestConnector(const std::string& id) : connector::Connector(id) {}
154
155 std::unique_ptr<connector::DataSource> createDataSource(
156 const RowTypePtr& /* outputType */,
157 const std::shared_ptr<ConnectorTableHandle>& /* tableHandle */,
158 const std::unordered_map<
159 std::string,
160 std::shared_ptr<connector::ColumnHandle>>& /* columnHandles */,
161 std::shared_ptr<ConnectorQueryCtx> connectorQueryCtx,
162 const core::QueryConfig& /* queryConfig */) override {
163 return std::make_unique<TestDataSource>(connectorQueryCtx->memoryPool());
164 }
165
166 std::unique_ptr<connector::DataSink> createDataSink(
167 RowTypePtr /*inputType*/,

Callers 2

getOutputMethod · 0.45
preloadMethod · 0.45

Calls 1

memoryPoolMethod · 0.80

Tested by

no test coverage detected