MCPcopy Create free account
hub / github.com/alibaba/GraphScope / Query

Function Query

analytical_engine/frame/cython_app_frame.cc:176–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176__attribute__((visibility("hidden"))) bl::result<std::nullptr_t> Query(
177 void* worker_handler, const gs::rpc::QueryArgs& query_args,
178 const std::string& context_key,
179 std::shared_ptr<gs::IFragmentWrapper> frag_wrapper,
180 std::shared_ptr<gs::IContextWrapper>& ctx_wrapper) {
181 auto worker = static_cast<worker_handler_t*>(worker_handler)->worker;
182 auto result = gs::AppInvoker<_APP_TYPE>::Query(worker, query_args);
183 if (result) {
184 if (!context_key.empty()) {
185 auto ctx = worker->GetContext();
186 ctx_wrapper = gs::CtxWrapperBuilder<typename _APP_TYPE::context_t>::build(
187 context_key, frag_wrapper, ctx);
188 }
189 }
190 return result;
191}
192
193} // namespace detail
194

Callers

nothing calls this directly

Calls 2

emptyMethod · 0.65
GetContextMethod · 0.45

Tested by

no test coverage detected