diff options
author | AlexSm <alex@ydb.tech> | 2024-02-16 11:51:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-16 11:51:30 +0100 |
commit | 506ecaee93b52cc12c2e2f97c3d42e3ca2a7f59e (patch) | |
tree | d096fb9eb988fbb0ca1ba970041773207ce3aa70 /library/cpp/archive/models_archive_reader.h | |
parent | 4749b9e5d260714490997e6f5ee1ee8c1c8fc46c (diff) | |
parent | f200f72c9d7a89c1018e3dc6b46c49fe2ecf84fb (diff) | |
download | ydb-506ecaee93b52cc12c2e2f97c3d42e3ca2a7f59e.tar.gz |
Merge pull request #1940 from dcherednik/importlib
Library import 14
Diffstat (limited to 'library/cpp/archive/models_archive_reader.h')
-rw-r--r-- | library/cpp/archive/models_archive_reader.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/library/cpp/archive/models_archive_reader.h b/library/cpp/archive/models_archive_reader.h index a5731b01cb..12347bf55e 100644 --- a/library/cpp/archive/models_archive_reader.h +++ b/library/cpp/archive/models_archive_reader.h @@ -2,7 +2,6 @@ #include <util/generic/fwd.h> #include <util/generic/ptr.h> -#include <util/generic/hash_set.h> class IInputStream; @@ -18,14 +17,5 @@ public: virtual TBlob ObjectBlobByKey(const TStringBuf key) const = 0; virtual TBlob BlobByKey(const TStringBuf key) const = 0; virtual bool Compressed() const = 0; - virtual THashSet<TStringBuf> FilterByPrefix(TStringBuf prefix, TStringBuf suffix) const { - THashSet<TStringBuf> result; - for (size_t ind = 0; ind < Count(); ++ind) { - TStringBuf path = KeyByIndex(ind); - if (path.StartsWith(prefix) && path.EndsWith(suffix)) { - result.insert(path); - } - } - return result; - } + virtual THashSet<TStringBuf> FilterByPrefix(TStringBuf prefix, TStringBuf suffix) const; }; |