aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/histogram/adaptive/protos
diff options
context:
space:
mode:
authorreverie <reverie@yandex-team.ru>2022-02-10 16:50:56 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:56 +0300
commit715969815532bc3ecdd5169efec8fc265e700a8b (patch)
tree67c799e5c8773af0ed5a77123f68eb76761afd74 /library/cpp/histogram/adaptive/protos
parent5e6b2e797f35f202ed490c0de2bafba4748b6265 (diff)
downloadydb-715969815532bc3ecdd5169efec8fc265e700a8b.tar.gz
Restoring authorship annotation for <reverie@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/histogram/adaptive/protos')
-rw-r--r--library/cpp/histogram/adaptive/protos/histo.proto42
-rw-r--r--library/cpp/histogram/adaptive/protos/ya.make14
2 files changed, 28 insertions, 28 deletions
diff --git a/library/cpp/histogram/adaptive/protos/histo.proto b/library/cpp/histogram/adaptive/protos/histo.proto
index 8961fef022..55099fbf74 100644
--- a/library/cpp/histogram/adaptive/protos/histo.proto
+++ b/library/cpp/histogram/adaptive/protos/histo.proto
@@ -1,17 +1,17 @@
-package NKiwiAggr;
-
-
-// THistoRec represents a value record added to a multihistogram
-message THistoRec {
- optional uint64 Id = 1; // Current histogram identifier
- optional double Value = 2;
+package NKiwiAggr;
+
+
+// THistoRec represents a value record added to a multihistogram
+message THistoRec {
+ optional uint64 Id = 1; // Current histogram identifier
+ optional double Value = 2;
optional double Weight = 3 [default = 1.0]; // You can set a certain weight to each record or just skip records using Weight=0
-}
-
-message THistoRecs {
- repeated THistoRec HistoRecs = 1;
-}
-
+}
+
+message THistoRecs {
+ repeated THistoRec HistoRecs = 1;
+}
+
enum EHistogramType {
HT_FIXED_BIN_HISTOGRAM = 1;
HT_ADAPTIVE_DISTANCE_HISTOGRAM = 2;
@@ -20,17 +20,17 @@ enum EHistogramType {
HT_ADAPTIVE_WARD_HISTOGRAM = 5;
}
-message THistogram {
- optional uint64 Id = 1;
- optional double MinValue = 2;
+message THistogram {
+ optional uint64 Id = 1;
+ optional double MinValue = 2;
optional double BinRange = 4; // for FIXED_BIN_HISTOGRAM only. And it's OK that it is 4 after 2
repeated float Freq = 5;
repeated float Position = 6; // for ADAPTIVE histograms only
optional double MaxValue = 7;
optional EHistogramType Type = 8; // Empty field means FIXED_BIN_HISTOGRAM
-}
-
-// Multihistogam
-message THistograms {
- repeated THistogram HistoRecs = 1;
+}
+
+// Multihistogam
+message THistograms {
+ repeated THistogram HistoRecs = 1;
}
diff --git a/library/cpp/histogram/adaptive/protos/ya.make b/library/cpp/histogram/adaptive/protos/ya.make
index 7635cfcb8c..8a9e578a5f 100644
--- a/library/cpp/histogram/adaptive/protos/ya.make
+++ b/library/cpp/histogram/adaptive/protos/ya.make
@@ -1,13 +1,13 @@
PROTO_LIBRARY()
-
+
OWNER(g:crawl)
-
-SRCS(
- histo.proto
-)
-
+
+SRCS(
+ histo.proto
+)
+
IF (NOT PY_PROTOS_FOR)
EXCLUDE_TAGS(GO_PROTO)
ENDIF()
-END()
+END()