addBucketsOrNull
fun addBucketsOrNull(replica: ReplicaId, positive: Map<Int, Long>, negative: Map<Int, Long>, zeroCount: Long): Patch<DDSketch>?
addBuckets, or null when replica's slot in a bucket, or in the zero or overflow counter, would pass Long.MAX_VALUE, or the counts folding onto one cell add up past it.
For a caller that has to refuse a whole batch before applying any of it, such as a metric exporter: it asks first, rather than catching an exception part-way (#3354).
Throws
if any count, or zeroCount, is negative.