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

Method create_context

src/core/algorithm/flat_sparse/flat_sparse_streamer.cc:154–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154FlatSparseStreamer::ContextPointer FlatSparseStreamer::create_context() const {
155 if (state_ != STATE_OPENED) {
156 LOG_ERROR("Failed to create Context, open streamer first!");
157 return Context::UPointer();
158 }
159 FlatSparseStreamerEntity::Pointer entity = entity_.clone();
160 return FlatSparseStreamer::ContextPointer(new FlatSparseContext(this));
161}
162
163IndexStreamer::SparseProvider::Pointer
164FlatSparseStreamer::create_sparse_provider() const {

Callers

nothing calls this directly

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected