diff options
author | kungasc <kungasc@yandex-team.com> | 2023-07-27 11:27:07 +0300 |
---|---|---|
committer | kungasc <kungasc@yandex-team.com> | 2023-07-27 11:27:07 +0300 |
commit | 4857f3a942f66f9295d71ec59b87abfff37385c9 (patch) | |
tree | 576d194f3020d6e156801a64ebc0b93427d7f274 | |
parent | ea1ca2e50424dbd6377f16b590929e4cdbc2e68a (diff) | |
download | ydb-4857f3a942f66f9295d71ec59b87abfff37385c9.tar.gz |
KIKIMR-18845 Remove legacy TIndex.Rewind function
-rw-r--r-- | ydb/core/tablet_flat/flat_page_index.h | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/ydb/core/tablet_flat/flat_page_index.h b/ydb/core/tablet_flat/flat_page_index.h index 065360a8f4..61c5b5c3c8 100644 --- a/ydb/core/tablet_flat/flat_page_index.h +++ b/ydb/core/tablet_flat/flat_page_index.h @@ -89,32 +89,6 @@ namespace NPage { return ReadUnaligned<NPage::TLabel>(Raw.data()); } - TIter Rewind(TRowId to, TIter on, int dir) const - { - Y_VERIFY(dir == +1, "Only forward lookups supported"); - - if (to >= EndRowId || !on) { - return Page.End(); - } else { - /* This branch have to never return End() since the real - upper RowId value isn't known. Only Max<TRowId>() and - invalid on iterator may be safetly mapped to End(). - */ - - for (size_t it = 0; ++it < 4 && ++on;) { - if (on->GetRowId() > to) return --on; - } - - auto less = [](TRowId rowId, const TRecord &rec) { - return rowId < rec.GetRowId(); - }; - - auto it = std::upper_bound(on, Page.End(), to, less); - - return (it && it == on) ? on : --it; - } - } - /** * Lookup a page that contains rowId */ |