/external/icing/icing/index/ |
D | term-id-codec.cc | 71 uint32_t term_id) const { in DecodeTviType() 72 if (term_id < max_main_tvi_) { in DecodeTviType() 74 } else if (term_id < max_term_id()) { in DecodeTviType() 78 "Given TermId %d is greater than or equal to the max TermId %d", term_id, in DecodeTviType() 83 TermIdCodec::DecodeTermInfo(uint32_t term_id) const { in DecodeTermInfo() 85 ICING_ASSIGN_OR_RETURN(result.tvi_type, DecodeTviType(term_id)); in DecodeTermInfo() 88 result.tvi = term_id; in DecodeTermInfo() 91 result.tvi = term_id - max_main_tvi_; in DecodeTermInfo()
|
D | term-id-codec.h | 82 libtextclassifier3::StatusOr<TviType> DecodeTviType(uint32_t term_id) const; 88 uint32_t term_id) const;
|
D | index.cc | 238 uint32_t term_id, in FindLiteTermsByPrefix() 243 lite_index_->CountHits(term_id)); in FindLiteTermsByPrefix() 328 uint32_t term_id, term_id_codec_->EncodeTvi(itr->first, TviType::LITE)); in IndexAllBufferedTerms() 329 ICING_RETURN_IF_ERROR(lite_index_->AddHit(term_id, hit)); in IndexAllBufferedTerms()
|
/external/icing/icing/index/main/ |
D | main-index-merger.cc | 39 return prev_.term_id() == term_id_hit_pair.term_id() && in IsEquivalentHit() 70 best_prefix_hit_.term_id(), in InsertSelectedHits() 106 term_id_hit_pair.term_id(), in SelectPrefixHitIfBetter() 124 term_id_hit_pair.term_id(), in SelectExactHitIfBetter() 152 int lhs_index_block = GetIndexBlock(lhs.term_id()); in operator ()() 153 int rhs_index_block = GetIndexBlock(rhs.term_id()); in operator ()() 162 int GetIndexBlock(uint32_t term_id) const { in GetIndexBlock() 163 auto term_info_or = term_id_codec_->DecodeTermInfo(term_id); in GetIndexBlock() 246 uint32_t cur_term_id = term_id_hit_pair.term_id(); in TranslateAndExpandLiteHits() 260 ICING_ASSIGN_OR_RETURN(uint32_t term_id, in TranslateAndExpandLiteHits() [all …]
|
D | main-index.cc | 465 uint32_t cur_term_id = hits[0].term_id(); in AddHits() 473 uint32_t term_id = hits[k_end].term_id(); in AddHits() local 474 while (term_id == cur_term_id && ++k_end < hits.size()) { in AddHits() 475 term_id = hits[k_end].term_id(); in AddHits() 491 cur_term_id = term_id; in AddHits()
|
/external/icing/icing/index/lite/ |
D | lite-index.cc | 308 libtextclassifier3::Status LiteIndex::AddHit(uint32_t term_id, const Hit& hit) { in AddHit() argument 313 TermIdHitPair term_id_hit_pair(term_id, hit); in AddHit() 338 int LiteIndex::AppendHits(uint32_t term_id, SectionIdMask section_id_mask, in AppendHits() argument 343 for (uint32_t idx = Seek(term_id); idx < header_->cur_size(); idx++) { in AppendHits() 346 if (term_id_hit_pair.term_id() != term_id) break; in AppendHits() 372 int LiteIndex::CountHits(uint32_t term_id) { in CountHits() argument 373 return AppendHits(term_id, kSectionIdMaskAll, in CountHits() 427 uint32_t LiteIndex::Seek(uint32_t term_id) { in Seek() argument 459 term_id, Hit(Hit::kMaxDocumentIdSortValue, Hit::kDefaultTermFrequency)); in Seek()
|
D | doc-hit-info-iterator-term-lite.cc | 72 ICING_ASSIGN_OR_RETURN(uint32_t term_id, in RetrieveMoreHits() 74 lite_index_->AppendHits(term_id, section_restrict_mask_, in RetrieveMoreHits() 94 uint32_t term_id, in RetrieveMoreHits() 96 lite_index_->AppendHits(term_id, section_restrict_mask_, in RetrieveMoreHits()
|
D | term-id-hit-pair.h | 43 TermIdHitPair(uint32_t term_id, const Hit& hit) { in TermIdHitPair() argument 51 bit_util::BitfieldSet(term_id, kHitValueBits + kHitTermFrequencyBits, in TermIdHitPair() 59 uint32_t term_id() const { in term_id() function
|
D | lite-index.h | 137 libtextclassifier3::Status AddHit(uint32_t term_id, const Hit& hit); 144 int AppendHits(uint32_t term_id, SectionIdMask section_id_mask, 149 int CountHits(uint32_t term_id); 276 uint32_t Seek(uint32_t term_id);
|
/external/icing/icing/scoring/ |
D | bm25f-calculator.cc | 55 TermId term_id = 0; in PrepareToScore() local 61 term_id_map_[term] = ++term_id; in PrepareToScore() 73 CorpusTermInfo corpus_term_info(corpus_id, term_id); in PrepareToScore() 132 TermId term_id = term_id_map_[term]; in GetCorpusIdfWeightForTerm() local 134 CorpusTermInfo corpus_term_info(corpus_id, term_id); in GetCorpusIdfWeightForTerm()
|
D | bm25f-calculator.h | 100 explicit CorpusTermInfo(CorpusId corpus_id, TermId term_id) : value(0) { in CorpusTermInfo() 103 BITFIELD_OR(value, 0, kTermIdBits, term_id); in CorpusTermInfo()
|
/external/ltp/pan/ |
D | ltp-pan.c | 124 int term_id, struct tms *tms1, struct tms *tms2); 1410 int term_id, struct tms *tms1, struct tms *tms2) in write_test_end() argument 1417 (long)(exit_time - running->mystime), term_type, term_id, in write_test_end()
|