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
107
+
)
108
+
109
+
func (bBoundType) String() string {
110
+
switchb {
111
+
caseRetentionPolicyBound:
112
+
return"Retention Policy Lower Bound"
113
+
caseWriteWindowUpperBound:
114
+
return"Write Window Upper Bound"
115
+
caseWriteWindowLowerBound:
116
+
return"Write Window Lower Bound"
117
+
caseWithinBounds:
118
+
return"Within Bounds"
119
+
default:
120
+
return"Unknown"
121
+
}
122
+
}
123
+
124
+
typeDroppedPointstruct {
125
+
Point models.Point
126
+
ViolatedBound time.Time
127
+
ReasonBoundType
128
+
}
129
+
130
+
func (d*DroppedPoint) String() string {
131
+
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))
132
+
}
133
+
98
134
// ShardMapping contains a mapping of shards to points.
99
135
typeShardMappingstruct {
100
-
nint
101
-
Pointsmap[uint64][]models.Point// The points associated with a shard ID
102
-
Shardsmap[uint64]*meta.ShardInfo// The shards that have been mapped, keyed by shard ID
103
-
Dropped []models.Point// Points that were dropped
136
+
nint
137
+
Pointsmap[uint64][]models.Point// The points associated with a shard ID
138
+
Shardsmap[uint64]*meta.ShardInfo// The shards that have been mapped, keyed by shard ID
0 commit comments