aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/codecs/comptable_codec.h
diff options
context:
space:
mode:
authorRuslan Kovalev <ruslan.a.kovalev@gmail.com>2022-02-10 16:46:44 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:44 +0300
commit59e19371de37995fcb36beb16cd6ec030af960bc (patch)
treefa68e36093ebff8b805462e9e6d331fe9d348214 /library/cpp/codecs/comptable_codec.h
parent89db6fe2fe2c32d2a832ddfeb04e8d078e301084 (diff)
downloadydb-59e19371de37995fcb36beb16cd6ec030af960bc.tar.gz
Restoring authorship annotation for Ruslan Kovalev <ruslan.a.kovalev@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/codecs/comptable_codec.h')
-rw-r--r--library/cpp/codecs/comptable_codec.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/library/cpp/codecs/comptable_codec.h b/library/cpp/codecs/comptable_codec.h
index 7ba4f4c543..1a10c8241e 100644
--- a/library/cpp/codecs/comptable_codec.h
+++ b/library/cpp/codecs/comptable_codec.h
@@ -1,40 +1,40 @@
-#pragma once
-
-#include "codecs.h"
-
-#include <util/generic/ptr.h>
-
-namespace NCodecs {
+#pragma once
+
+#include "codecs.h"
+
+#include <util/generic/ptr.h>
+
+namespace NCodecs {
class TCompTableCodec: public ICodec {
class TImpl;
TIntrusivePtr<TImpl> Impl;
-
+
public:
enum EQuality {
Q_LOW = 0,
Q_HIGH = 1
};
-
+
explicit TCompTableCodec(EQuality q = Q_HIGH);
~TCompTableCodec() override;
-
+
static TStringBuf MyNameHQ() {
return "comptable-hq";
}
static TStringBuf MyNameLQ() {
return "comptable-lq";
}
-
+
TString GetName() const override;
-
+
ui8 Encode(TStringBuf in, TBuffer& out) const override;
-
+
void Decode(TStringBuf in, TBuffer& out) const override;
-
+
protected:
void DoLearn(ISequenceReader& in) override;
void Save(IOutputStream* out) const override;
void Load(IInputStream* in) override;
};
-
-}
+
+}