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

Method create_context

src/core/algorithm/flat_sparse/flat_sparse_searcher.cc:131–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129}
130
131FlatSparseSearcher::ContextPointer FlatSparseSearcher::create_context() const {
132 if (state_ != STATE_LOADED) {
133 LOG_ERROR("Failed to create Context, load container first!");
134 return Context::UPointer();
135 }
136 FlatSparseSearcherEntity::Pointer entity = entity_.clone();
137 return FlatSparseSearcher::ContextPointer(new FlatSparseContext(this));
138}
139
140//! Create a new iterator
141IndexSearcher::SparseProvider::Pointer

Callers

nothing calls this directly

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected