You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MaxBoundType// always the largest bound type, not for actual use
86
+
)
87
+
88
+
func (bBoundType) String() string {
89
+
switchb {
90
+
caseRetentionPolicyBound:
91
+
return"Retention Policy Lower Bound"
92
+
caseWriteWindowUpperBound:
93
+
return"Write Window Upper Bound"
94
+
caseWriteWindowLowerBound:
95
+
return"Write Window Lower Bound"
96
+
caseWithinBounds:
97
+
return"Within Bounds"
98
+
default:
99
+
return"Unknown"
100
+
}
101
+
}
102
+
103
+
typeDroppedPointstruct {
104
+
Point models.Point
105
+
ViolatedBound time.Time
106
+
ReasonBoundType
107
+
}
108
+
109
+
func (d*DroppedPoint) String() string {
110
+
returnfmt.Sprintf("point %s at %s dropped because it violates a %s at %s", d.Point.Key(), d.Point.Time().UTC().Format(time.RFC3339Nano), d.Reason.String(), d.ViolatedBound.UTC().Format(time.RFC3339Nano))
111
+
}
112
+
78
113
// ShardMapping contains a mapping of shards to points.
79
114
typeShardMappingstruct {
80
-
nint
81
-
Pointsmap[uint64][]models.Point// The points associated with a shard ID
82
-
Shardsmap[uint64]*meta.ShardInfo// The shards that have been mapped, keyed by shard ID
83
-
Dropped []models.Point// Points that were dropped
115
+
nint
116
+
Pointsmap[uint64][]models.Point// The points associated with a shard ID
117
+
Shardsmap[uint64]*meta.ShardInfo// The shards that have been mapped, keyed by shard ID
0 commit comments