Home
last modified time | relevance | path

Searched refs:lite_index_ (Results 1 – 6 of 6) sorted by relevance

/external/icing/icing/index/main/
Dmain-index_test.cc93 ICING_ASSERT_OK_AND_ASSIGN(lite_index_, in SetUp()
110 std::unique_ptr<LiteIndex> lite_index_; member in icing::lib::__anonb8bf713b0111::MainIndexTest
144 lite_index_->InsertTerm("foot", TermMatchType::PREFIX, kNamespace0)); in TEST_F()
150 ICING_ASSERT_OK(lite_index_->AddHit(foot_term_id, doc0_hit)); in TEST_F()
160 ICING_ASSERT_OK(Merge(*lite_index_, *term_id_codec_, main_index.get())); in TEST_F()
181 lite_index_->InsertTerm("foo", TermMatchType::EXACT_ONLY, kNamespace0)); in TEST_F()
187 ICING_ASSERT_OK(lite_index_->AddHit(foot_term_id, doc0_hit)); in TEST_F()
197 ICING_ASSERT_OK(Merge(*lite_index_, *term_id_codec_, main_index.get())); in TEST_F()
209 lite_index_->InsertTerm("foot", TermMatchType::PREFIX, kNamespace0)); in TEST_F()
213 tvi, lite_index_->InsertTerm("fool", TermMatchType::PREFIX, kNamespace0)); in TEST_F()
[all …]
Dmain-index-merger_test.cc49 ICING_ASSERT_OK_AND_ASSIGN(lite_index_, in SetUp()
66 std::unique_ptr<LiteIndex> lite_index_; member in icing::lib::__anon6a8b436a0111::MainIndexMergerTest
78 lite_index_->InsertTerm("foot", TermMatchType::PREFIX, kNamespace0)); in TEST_F()
84 lite_index_->InsertTerm("fool", TermMatchType::PREFIX, kNamespace0)); in TEST_F()
91 ICING_ASSERT_OK(lite_index_->AddHit(foot_term_id, doc0_hit)); in TEST_F()
94 ICING_ASSERT_OK(lite_index_->AddHit(fool_term_id, doc1_hit)); in TEST_F()
107 *lite_index_, *term_id_codec_, lexicon_outputs), in TEST_F()
117 lite_index_->InsertTerm("foot", TermMatchType::PREFIX, kNamespace0)); in TEST_F()
123 lite_index_->InsertTerm("fool", TermMatchType::PREFIX, kNamespace0)); in TEST_F()
130 ICING_ASSERT_OK(lite_index_->AddHit(foot_term_id, doc0_hit)); in TEST_F()
[all …]
/external/icing/icing/index/
Dindex.h89 ICING_RETURN_IF_ERROR(lite_index_->Reset()); in Reset()
96 lite_index_->Warm(); in Warm()
106 ICING_RETURN_IF_ERROR(lite_index_->PersistToDisk()); in PersistToDisk()
123 DocumentId lite_document_id = lite_index_->last_added_document_id(); in last_added_document_id()
133 DocumentId lite_document_id = lite_index_->last_added_document_id(); in set_last_added_document_id()
136 lite_index_->set_last_added_document_id(document_id); in set_last_added_document_id()
146 lite_index_->GetDebugInfo(verbosity, out); in GetDebugInfo()
159 lite_index_->GetElementsSize()); in GetElementsSize()
211 lite_index_(lite_index), in Editor()
228 LiteIndex* lite_index_; variable
[all …]
Dindex.cc171 if (lite_index_->last_added_document_id() != kInvalidDocumentId && in TruncateTo()
172 lite_index_->last_added_document_id() > document_id) { in TruncateTo()
175 << lite_index_->last_added_document_id(); in TruncateTo()
176 ICING_RETURN_IF_ERROR(lite_index_->Reset()); in TruncateTo()
196 term_id_codec_.get(), lite_index_.get(), term, section_id_mask); in GetIterator()
202 term_id_codec_.get(), lite_index_.get(), term, section_id_mask); in GetIterator()
220 IcingDynamicTrie::Iterator term_iterator(lite_index_->lexicon(), in FindLiteTermsByPrefix()
224 IcingDynamicTrie::PropertyReadersAll property_reader(lite_index_->lexicon()); in FindLiteTermsByPrefix()
243 lite_index_->CountHits(term_id)); in FindLiteTermsByPrefix()
288 storage_info = lite_index_->GetStorageInfo(std::move(storage_info)); in GetStorageInfo()
[all …]
/external/icing/icing/index/lite/
Ddoc-hit-info-iterator-term-lite.cc71 ICING_ASSIGN_OR_RETURN(uint32_t tvi, lite_index_->GetTermId(term_)); in RetrieveMoreHits()
74 lite_index_->AppendHits(term_id, section_restrict_mask_, in RetrieveMoreHits()
90 for (LiteIndex::PrefixIterator it = lite_index_->FindTermPrefixes(term_); in RetrieveMoreHits()
96 lite_index_->AppendHits(term_id, section_restrict_mask_, in RetrieveMoreHits()
Ddoc-hit-info-iterator-term-lite.h38 lite_index_(lite_index), in DocHitInfoIteratorTermLite()
88 LiteIndex* const lite_index_; variable