diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2024-04-19 18:08:47 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2024-04-19 18:08:47 +0000 |
commit | b5d722c7687592b47cdb2e2a18377df45aca144e (patch) | |
tree | 05b131543d5192b4ca175830f2fb507899298a05 /icing/index/iterator/doc-hit-info-iterator-all-document-id.h | |
parent | bc49e6f3d44af3611a5edc02ead7507f1ce1d431 (diff) | |
parent | a81a0c8cb5c424e6eed6cec1bd687bc4d609e6cd (diff) | |
download | icing-b5d722c7687592b47cdb2e2a18377df45aca144e.tar.gz |
Snap for 11739378 from a81a0c8cb5c424e6eed6cec1bd687bc4d609e6cd to androidx-lifecycle-releaseandroidx-lifecycle-release
Change-Id: I430307224fdc13e426fcfcd90468567d316c7946
Diffstat (limited to 'icing/index/iterator/doc-hit-info-iterator-all-document-id.h')
-rw-r--r-- | icing/index/iterator/doc-hit-info-iterator-all-document-id.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/icing/index/iterator/doc-hit-info-iterator-all-document-id.h b/icing/index/iterator/doc-hit-info-iterator-all-document-id.h index bb16eaf..60c5e0c 100644 --- a/icing/index/iterator/doc-hit-info-iterator-all-document-id.h +++ b/icing/index/iterator/doc-hit-info-iterator-all-document-id.h @@ -37,10 +37,16 @@ class DocHitInfoIteratorAllDocumentId : public DocHitInfoIterator { libtextclassifier3::StatusOr<TrimmedNode> TrimRightMostNode() && override; - int32_t GetNumBlocksInspected() const override { return 0; } + void MapChildren(const ChildrenMapper& mapper) override {} - int32_t GetNumLeafAdvanceCalls() const override { - return document_id_limit_ - current_document_id_; + CallStats GetCallStats() const override { + return CallStats( + /*num_leaf_advance_calls_lite_index_in=*/0, + /*num_leaf_advance_calls_main_index_in=*/0, + /*num_leaf_advance_calls_integer_index_in=*/0, + /*num_leaf_advance_calls_no_index_in=*/document_id_limit_ - + current_document_id_, + /*num_blocks_inspected_in=*/0); } std::string ToString() const override { |