aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/histogram/adaptive/auto_histogram.h
diff options
context:
space:
mode:
authorvictor-k <victor-k@yandex-team.ru>2022-02-10 16:50:38 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:38 +0300
commitf632afcab870d2327aaa8388ceeb7aeb2bb6a1c1 (patch)
tree7bf4ee5af2c901bfd7715a527d63fad8eabf861d /library/cpp/histogram/adaptive/auto_histogram.h
parentfdec3824b69496e472972311be8d8157a8bb99db (diff)
downloadydb-f632afcab870d2327aaa8388ceeb7aeb2bb6a1c1.tar.gz
Restoring authorship annotation for <victor-k@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/histogram/adaptive/auto_histogram.h')
-rw-r--r--library/cpp/histogram/adaptive/auto_histogram.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/library/cpp/histogram/adaptive/auto_histogram.h b/library/cpp/histogram/adaptive/auto_histogram.h
index 9fdf0b9abe..abd4c17603 100644
--- a/library/cpp/histogram/adaptive/auto_histogram.h
+++ b/library/cpp/histogram/adaptive/auto_histogram.h
@@ -14,25 +14,25 @@ namespace NKiwiAggr {
private:
static const size_t DEFAULT_INTERVALS = 100;
- ui64 Id;
+ ui64 Id;
size_t Intervals;
THolder<IHistogram> HistogramImpl;
public:
- TAutoHistogram(size_t intervals, ui64 id = 0) {
+ TAutoHistogram(size_t intervals, ui64 id = 0) {
Y_UNUSED(intervals);
Y_UNUSED(id);
ythrow yexception() << "Empty constructor is not defined for TAutoHistogram";
}
- TAutoHistogram(const THistogram& histo, size_t defaultIntervals = DEFAULT_INTERVALS, ui64 defaultId = 0)
+ TAutoHistogram(const THistogram& histo, size_t defaultIntervals = DEFAULT_INTERVALS, ui64 defaultId = 0)
: Id(defaultId)
, Intervals(defaultIntervals)
{
FromProto(histo);
}
- TAutoHistogram(IHistogram* histo, size_t defaultIntervals = DEFAULT_INTERVALS, ui64 defaultId = 0) {
+ TAutoHistogram(IHistogram* histo, size_t defaultIntervals = DEFAULT_INTERVALS, ui64 defaultId = 0) {
Y_UNUSED(histo);
Y_UNUSED(defaultIntervals);
Y_UNUSED(defaultId);
@@ -88,11 +88,11 @@ namespace NKiwiAggr {
HistogramImpl->ToProto(histo);
}
- virtual void SetId(ui64 id) {
+ virtual void SetId(ui64 id) {
HistogramImpl->SetId(id);
}
- virtual ui64 GetId() {
+ virtual ui64 GetId() {
return HistogramImpl->GetId();
}
@@ -131,14 +131,14 @@ namespace NKiwiAggr {
virtual double CalcLowerBound(double sum) {
return HistogramImpl->CalcLowerBound(sum);
}
-
- virtual double CalcUpperBoundSafe(double sum) {
- return HistogramImpl->CalcUpperBoundSafe(sum);
- }
-
- virtual double CalcLowerBoundSafe(double sum) {
- return HistogramImpl->CalcLowerBoundSafe(sum);
- }
+
+ virtual double CalcUpperBoundSafe(double sum) {
+ return HistogramImpl->CalcUpperBoundSafe(sum);
+ }
+
+ virtual double CalcLowerBoundSafe(double sum) {
+ return HistogramImpl->CalcLowerBoundSafe(sum);
+ }
virtual void PrecomputePartialSums() {
return HistogramImpl->PrecomputePartialSums();