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:45 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:45 +0300
commit9123176b341b6f2658cff5132482b8237c1416c8 (patch)
tree49e222ea1c5804306084bb3ae065bb702625360f /library/cpp/codecs/comptable_codec.h
parent59e19371de37995fcb36beb16cd6ec030af960bc (diff)
downloadydb-9123176b341b6f2658cff5132482b8237c1416c8.tar.gz
Restoring authorship annotation for Ruslan Kovalev <ruslan.a.kovalev@gmail.com>. Commit 2 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 1a10c8241e..7ba4f4c543 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;
};
-
-}
+
+}