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

Function Query

analytical_engine/frame/flash_app_frame.cc:85–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85__attribute__((visibility("hidden"))) bl::result<std::nullptr_t> Query(
86 void* worker_handler, const gs::rpc::QueryArgs& query_args,
87 const std::string& context_key,
88 std::shared_ptr<gs::IFragmentWrapper> frag_wrapper,
89 std::shared_ptr<gs::IContextWrapper>& ctx_wrapper) {
90 auto worker = static_cast<worker_handler_t*>(worker_handler)->worker;
91 auto result = gs::FlashAppInvoker<_APP_TYPE>::Query(worker, query_args);
92 if (result) {
93 if (!context_key.empty()) {
94 auto ctx = worker->GetContext();
95 ctx_wrapper = gs::CtxWrapperBuilder<typename _APP_TYPE::context_t>::build(
96 context_key, frag_wrapper, ctx);
97 }
98 }
99 return result;
100}
101} // namespace detail
102extern "C" {
103void* CreateWorker(const std::shared_ptr<void>& fragment,

Callers

nothing calls this directly

Calls 2

emptyMethod · 0.65
GetContextMethod · 0.45

Tested by

no test coverage detected