aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/histogram/adaptive/auto_histogram.h
diff options
context:
space:
mode:
authorsvirg <svirg@yandex-team.ru>2022-02-10 16:50:56 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:56 +0300
commit6b417b6bdff55c365f5835bb18c5a8053b975801 (patch)
tree879a609bb97de971de25f96711cb5e510013cbd6 /library/cpp/histogram/adaptive/auto_histogram.h
parent0f79d22ae2d0756b8c99339136f54b76c1a7aee2 (diff)
downloadydb-6b417b6bdff55c365f5835bb18c5a8053b975801.tar.gz
Restoring authorship annotation for <svirg@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.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/library/cpp/histogram/adaptive/auto_histogram.h b/library/cpp/histogram/adaptive/auto_histogram.h
index 9fdf0b9abe..be21c39b19 100644
--- a/library/cpp/histogram/adaptive/auto_histogram.h
+++ b/library/cpp/histogram/adaptive/auto_histogram.h
@@ -54,10 +54,10 @@ namespace NKiwiAggr {
HistogramImpl->Add(histoRec);
}
- virtual void Merge(const THistogram& histo, double multiplier) {
- HistogramImpl->Merge(histo, multiplier);
- }
-
+ virtual void Merge(const THistogram& histo, double multiplier) {
+ HistogramImpl->Merge(histo, multiplier);
+ }
+
virtual void Merge(const TVector<THistogram>& histogramsToMerge) {
HistogramImpl->Merge(histogramsToMerge);
}
@@ -73,14 +73,14 @@ namespace NKiwiAggr {
virtual void FromProto(const THistogram& histo) {
if (!histo.HasType() || histo.GetType() == HT_FIXED_BIN_HISTOGRAM) {
HistogramImpl.Reset(new TFixedBinHistogram(histo, Intervals, Id));
- } else if (histo.GetType() == HT_ADAPTIVE_DISTANCE_HISTOGRAM) {
+ } else if (histo.GetType() == HT_ADAPTIVE_DISTANCE_HISTOGRAM) {
HistogramImpl.Reset(new TAdaptiveDistanceHistogram(histo, Intervals, Id));
- } else if (histo.GetType() == HT_ADAPTIVE_WEIGHT_HISTOGRAM) {
+ } else if (histo.GetType() == HT_ADAPTIVE_WEIGHT_HISTOGRAM) {
HistogramImpl.Reset(new TAdaptiveWeightHistogram(histo, Intervals, Id));
- } else if (histo.GetType() == HT_ADAPTIVE_WARD_HISTOGRAM) {
- HistogramImpl.Reset(new TAdaptiveWardHistogram(histo, Intervals, Id));
- } else {
- ythrow yexception() << "Can't parse TAutoHistogram from a THistogram of type " << (ui32)histo.GetType();
+ } else if (histo.GetType() == HT_ADAPTIVE_WARD_HISTOGRAM) {
+ HistogramImpl.Reset(new TAdaptiveWardHistogram(histo, Intervals, Id));
+ } else {
+ ythrow yexception() << "Can't parse TAutoHistogram from a THistogram of type " << (ui32)histo.GetType();
}
}