Searched refs:TviType (Results 1 – 8 of 8) sorted by relevance
/external/icing/icing/index/ |
D | term-id-codec_test.cc | 56 EXPECT_THAT(codec->EncodeTvi(0, TviType::MAIN), IsOkAndHolds(Eq(0))); in TEST() 57 EXPECT_THAT(codec->EncodeTvi(2, TviType::MAIN), IsOkAndHolds(Eq(2))); in TEST() 58 EXPECT_THAT(codec->EncodeTvi(3, TviType::MAIN), in TEST() 61 EXPECT_THAT(codec->EncodeTvi(0, TviType::LITE), IsOkAndHolds(Eq(3))); in TEST() 62 EXPECT_THAT(codec->EncodeTvi(6, TviType::LITE), IsOkAndHolds(Eq(9))); in TEST() 63 EXPECT_THAT(codec->EncodeTvi(7, TviType::LITE), in TEST() 75 EXPECT_THAT(decoded_term.tvi_type, Eq(TviType::MAIN)); in TEST() 79 EXPECT_THAT(decoded_term.tvi_type, Eq(TviType::LITE)); in TEST() 86 TEST(TermIdCodecTest, TviType) { in TEST() argument 92 EXPECT_THAT(codec->DecodeTviType(0), IsOkAndHolds(Eq(TviType::MAIN))); in TEST() [all …]
|
D | term-id-codec.cc | 48 uint32_t tvi, TviType tvi_type) const { in EncodeTvi() 50 case TviType::MAIN: in EncodeTvi() 58 case TviType::LITE: { in EncodeTvi() 70 libtextclassifier3::StatusOr<TviType> TermIdCodec::DecodeTviType( in DecodeTviType() 73 return TviType::MAIN; in DecodeTviType() 75 return TviType::LITE; in DecodeTviType() 87 case TviType::MAIN: in DecodeTermInfo() 90 case TviType::LITE: in DecodeTermInfo()
|
D | term-id-codec.h | 52 enum TviType { MAIN, LITE }; enum 57 TviType tvi_type; 77 TviType tvi_type) const; 82 libtextclassifier3::StatusOr<TviType> DecodeTviType(uint32_t term_id) const;
|
D | index.cc | 239 term_id_codec_->EncodeTvi(term_value_index, TviType::LITE), in FindLiteTermsByPrefix() 328 uint32_t term_id, term_id_codec_->EncodeTvi(itr->first, TviType::LITE)); in IndexAllBufferedTerms()
|
/external/icing/icing/index/main/ |
D | main-index-merger_test.cc | 81 term_id_codec_->EncodeTvi(foot_tvi, TviType::LITE)); in TEST_F() 87 term_id_codec_->EncodeTvi(fool_tvi, TviType::LITE)); in TEST_F() 120 term_id_codec_->EncodeTvi(foot_tvi, TviType::LITE)); in TEST_F() 126 term_id_codec_->EncodeTvi(fool_tvi, TviType::LITE)); in TEST_F() 140 term_id_codec_->EncodeTvi(foo_main_tvi, TviType::MAIN)); in TEST_F() 148 term_id_codec_->EncodeTvi(foot_main_tvi, TviType::MAIN)); in TEST_F() 152 term_id_codec_->EncodeTvi(fool_main_tvi, TviType::MAIN)); in TEST_F() 184 term_id_codec_->EncodeTvi(foot_tvi, TviType::LITE)); in TEST_F() 189 term_id_codec_->EncodeTvi(foo_tvi, TviType::LITE)); in TEST_F() 204 term_id_codec_->EncodeTvi(foo_main_tvi, TviType::MAIN)); in TEST_F() [all …]
|
D | main-index_test.cc | 146 term_id_codec_->EncodeTvi(tvi, TviType::LITE)); in TEST_F() 183 term_id_codec_->EncodeTvi(tvi, TviType::LITE)); in TEST_F() 211 term_id_codec_->EncodeTvi(tvi, TviType::LITE)); in TEST_F() 215 term_id_codec_->EncodeTvi(tvi, TviType::LITE)); in TEST_F() 220 term_id_codec_->EncodeTvi(tvi, TviType::LITE)); in TEST_F() 284 term_id_codec_->EncodeTvi(tvi, TviType::LITE)); in TEST_F() 288 term_id_codec_->EncodeTvi(tvi, TviType::LITE)); in TEST_F() 293 term_id_codec_->EncodeTvi(tvi, TviType::LITE)); in TEST_F() 337 term_id_codec_->EncodeTvi(tvi, TviType::LITE)); in TEST_F() 341 term_id_codec_->EncodeTvi(tvi, TviType::LITE)); in TEST_F() [all …]
|
D | main-index-merger.cc | 261 term_id_codec.EncodeTvi(itr->second, TviType::MAIN)); in TranslateAndExpandLiteHits() 291 term_id_codec.EncodeTvi(prefix_main_tvi, TviType::MAIN)); in TranslateAndExpandLiteHits()
|
/external/icing/icing/index/lite/ |
D | doc-hit-info-iterator-term-lite.cc | 73 term_id_codec_->EncodeTvi(tvi, TviType::LITE)); in RetrieveMoreHits() 95 term_id_codec_->EncodeTvi(it.GetValueIndex(), TviType::LITE)); in RetrieveMoreHits()
|