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

Method create_context

src/core/algorithm/flat/flat_streamer.cc:271–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269
270template <size_t BATCH_SIZE>
271IndexStreamer::Context::UPointer FlatStreamer<BATCH_SIZE>::create_context()
272 const {
273 if (state_ != STATE_OPENED) {
274 LOG_ERROR("Failed to create Context, open storage first!");
275 return Context::UPointer();
276 }
277 return IndexStreamer::Context::Pointer(
278 new FlatStreamerContext<BATCH_SIZE>(this));
279}
280
281template <size_t BATCH_SIZE>
282IndexProvider::Pointer FlatStreamer<BATCH_SIZE>::create_provider() const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected