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

Function fill_doc_id

src/db/sqlengine/sqlengine_impl.cc:474–482  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

472}
473
474void fill_doc_id(const std::shared_ptr<arrow::Array> &doc_id_array,
475 DocPtrList::iterator doc_it) {
476 arrow::UInt64Array *typed_arr =
477 static_cast<arrow::UInt64Array *>(doc_id_array.get());
478 for (int64_t i = 0; i < typed_arr->length(); ++i, ++doc_it) {
479 // doc_id is non-null
480 (*doc_it)->set_doc_id(typed_arr->Value(i));
481 }
482}
483
484void fill_doc_score(const std::shared_ptr<arrow::Array> &doc_id_array,
485 DocPtrList::iterator doc_it) {

Callers 1

record_batch_to_doc_listFunction · 0.85

Calls 3

lengthMethod · 0.80
ValueMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected