aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/codecs/codecs_registry.cpp
diff options
context:
space:
mode:
authorAnton Samokhvalov <pg83@yandex.ru>2022-02-10 16:45:15 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:15 +0300
commit72cb13b4aff9bc9cf22e49251bc8fd143f82538f (patch)
treeda2c34829458c7d4e74bdfbdf85dff449e9e7fb8 /library/cpp/codecs/codecs_registry.cpp
parent778e51ba091dc39e7b7fcab2b9cf4dbedfb6f2b5 (diff)
downloadydb-72cb13b4aff9bc9cf22e49251bc8fd143f82538f.tar.gz
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/codecs/codecs_registry.cpp')
-rw-r--r--library/cpp/codecs/codecs_registry.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/library/cpp/codecs/codecs_registry.cpp b/library/cpp/codecs/codecs_registry.cpp
index 17d07062ab..c8941ec337 100644
--- a/library/cpp/codecs/codecs_registry.cpp
+++ b/library/cpp/codecs/codecs_registry.cpp
@@ -42,7 +42,7 @@ namespace NCodecs {
} else {
TPipelineCodec* pipe = new TPipelineCodec;
- do {
+ do {
TStringBuf v = name.NextTok(':');
pipe->AddCodec(GetCodec(v));
} while (name);
@@ -64,7 +64,7 @@ namespace NCodecs {
return vs;
}
- struct TSolarCodecFactory : ICodecFactory {
+ struct TSolarCodecFactory : ICodecFactory {
TCodecPtr MakeCodec(TStringBuf name) const override {
if (TSolarCodec::MyNameShortInt() == name) {
return new TSolarCodecShortInt();
@@ -79,7 +79,7 @@ namespace NCodecs {
}
}
- template <class TCodecCls>
+ template <class TCodecCls>
TCodecPtr MakeCodecImpl(const TStringBuf& name, const TStringBuf& type) const {
if (TStringBuf("-8k") == type) {
return new TCodecCls(1 << 13);
@@ -117,7 +117,7 @@ namespace NCodecs {
}
};
- struct TZStdDictCodecFactory : ICodecFactory {
+ struct TZStdDictCodecFactory : ICodecFactory {
TCodecPtr MakeCodec(TStringBuf name) const override {
return new TZStdDictCodec(TZStdDictCodec::ParseCompressionName(name));
}
@@ -127,7 +127,7 @@ namespace NCodecs {
}
};
- struct TCompTableCodecFactory : ICodecFactory {
+ struct TCompTableCodecFactory : ICodecFactory {
TCodecPtr MakeCodec(TStringBuf name) const override {
if (TCompTableCodec::MyNameHQ() == name) {
return new TCompTableCodec(TCompTableCodec::Q_HIGH);
@@ -147,11 +147,11 @@ namespace NCodecs {
}
};
- struct TBlockCodec : ICodec {
+ struct TBlockCodec : ICodec {
const NBlockCodecs::ICodec* Codec;
TBlockCodec(TStringBuf name)
- : Codec(NBlockCodecs::Codec(name))
+ : Codec(NBlockCodecs::Codec(name))
{
}
@@ -174,11 +174,11 @@ namespace NCodecs {
}
};
- struct TBlockCodecsFactory : ICodecFactory {
+ struct TBlockCodecsFactory : ICodecFactory {
using TRegistry = THashMap<TString, TCodecPtr>;
TRegistry Registry;
- TBlockCodecsFactory() {
+ TBlockCodecsFactory() {
for (TStringBuf codec : NBlockCodecs::ListAllCodecs()) {
Register(codec);
}
@@ -205,12 +205,12 @@ namespace NCodecs {
}
};
- TCodecRegistry::TCodecRegistry() {
+ TCodecRegistry::TCodecRegistry() {
RegisterFactory(new TInstanceFactory<TTrivialCodec>);
RegisterFactory(new TInstanceFactory<TTrivialTrainableCodec>);
RegisterFactory(new TInstanceFactory<THuffmanCodec>);
- RegisterFactory(new TInstanceFactory<TPForCodec<ui64, true>>);
- RegisterFactory(new TInstanceFactory<TPForCodec<ui32, true>>);
+ RegisterFactory(new TInstanceFactory<TPForCodec<ui64, true>>);
+ RegisterFactory(new TInstanceFactory<TPForCodec<ui32, true>>);
RegisterFactory(new TSolarCodecFactory);
RegisterFactory(new TZStdDictCodecFactory);
RegisterFactory(new TCompTableCodecFactory);