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

Function fill_doc_score

src/db/sqlengine/sqlengine_impl.cc:484–492  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

482}
483
484void fill_doc_score(const std::shared_ptr<arrow::Array> &doc_id_array,
485 DocPtrList::iterator doc_it) {
486 arrow::FloatArray *typed_arr =
487 static_cast<arrow::FloatArray *>(doc_id_array.get());
488 for (int64_t i = 0; i < typed_arr->length(); ++i, ++doc_it) {
489 // doc_score is non-null
490 (*doc_it)->set_score(typed_arr->Value(i));
491 }
492}
493
494void fill_user_id(const std::shared_ptr<arrow::Array> &user_id_array,
495 DocPtrList::iterator doc_it) {

Callers 1

record_batch_to_doc_listFunction · 0.85

Calls 4

lengthMethod · 0.80
ValueMethod · 0.80
getMethod · 0.45
set_scoreMethod · 0.45

Tested by

no test coverage detected