MCPcopy Create free account
hub / github.com/alibaba/zvec / create_context

Method create_context

tools/core/flow.h:445–454  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

443 };
444
445 Context::Pointer create_context() const {
446 IndexContext::Pointer ctx;
447 IndexSparseFlow::Context::Pointer flow_ctx;
448 if (streamer_) {
449 ctx = streamer_->create_context();
450 } else {
451 flow_ctx = flow_.create_context();
452 }
453 return Context::Pointer(new (std::nothrow) Context(ctx, flow_ctx));
454 }
455
456 int set_container(const std::string &name, const ailego::Params &params) {
457 return flow_.set_storage(name, params);

Callers

nothing calls this directly

Calls 1

create_contextMethod · 0.45

Tested by

no test coverage detected