From 4bd0028bc7ef17604cb11167e58273aa13c0f954 Mon Sep 17 00:00:00 2001 From: HÃ¥vard Pettersen Date: Fri, 2 Feb 2024 10:59:03 +0000 Subject: re-wire flow stats in blueprints --- .../src/vespa/searchcore/proton/documentmetastore/lid_allocator.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'searchcore') diff --git a/searchcore/src/vespa/searchcore/proton/documentmetastore/lid_allocator.cpp b/searchcore/src/vespa/searchcore/proton/documentmetastore/lid_allocator.cpp index 9e9199bc8ba..5a58aa869e0 100644 --- a/searchcore/src/vespa/searchcore/proton/documentmetastore/lid_allocator.cpp +++ b/searchcore/src/vespa/searchcore/proton/documentmetastore/lid_allocator.cpp @@ -13,6 +13,7 @@ LOG_SETUP(".proton.documentmetastore.lid_allocator"); using search::fef::TermFieldMatchDataArray; using search::queryeval::Blueprint; +using search::queryeval::FlowStats; using search::queryeval::FullSearch; using search::queryeval::SearchIterator; using search::queryeval::SimpleLeafBlueprint; @@ -222,8 +223,9 @@ public: setEstimate(HitEstimate(_activeLids.size(), false)); } - double calculate_relative_estimate() const final { - return abs_to_rel_est(getState().estimate().estHits, get_docid_limit()); + FlowStats calculate_flow_stats(uint32_t docid_limit) const override { + auto est = abs_to_rel_est(getState().estimate().estHits, docid_limit); + return {est, 1.0, est}; } bool isWhiteList() const noexcept final { return true; } -- cgit v1.2.3