Home
last modified time | relevance | path

Searched refs:term_iterator (Results 1 – 3 of 3) sorted by relevance

/external/icing/icing/index/
Dindex.cc220 IcingDynamicTrie::Iterator term_iterator(lite_index_->lexicon(), in FindLiteTermsByPrefix() local
227 while (term_iterator.IsValid() && term_metadata_list.size() < num_to_return) { in FindLiteTermsByPrefix()
228 uint32_t term_value_index = term_iterator.GetValueIndex(); in FindLiteTermsByPrefix()
233 term_iterator.Advance(); in FindLiteTermsByPrefix()
242 term_metadata_list.emplace_back(term_iterator.GetKey(), in FindLiteTermsByPrefix()
245 term_iterator.Advance(); in FindLiteTermsByPrefix()
247 if (term_iterator.IsValid()) { in FindLiteTermsByPrefix()
/external/icing/icing/index/main/
Dmain-index.cc223 IcingDynamicTrie::Iterator term_iterator(*main_lexicon_, prefix.c_str()); in FindTermsByPrefix() local
229 while (term_iterator.IsValid() && term_metadata_list.size() < num_to_return) { in FindTermsByPrefix()
230 uint32_t term_value_index = term_iterator.GetValueIndex(); in FindTermsByPrefix()
235 term_iterator.Advance(); in FindTermsByPrefix()
239 memcpy(&posting_list_id, term_iterator.GetValue(), sizeof(posting_list_id)); in FindTermsByPrefix()
249 term_metadata_list.emplace_back(term_iterator.GetKey(), approx_hit_count); in FindTermsByPrefix()
251 term_iterator.Advance(); in FindTermsByPrefix()
253 if (term_iterator.IsValid()) { in FindTermsByPrefix()
/external/icing/icing/query/
Dquery-processor.cc270 std::unique_ptr<DocHitInfoIterator> term_iterator, in ParseRawQuery()
276 std::move(term_iterator), &document_store_, &schema_store_, in ParseRawQuery()