- All Implemented Interfaces:
- Serializable, Comparable<Pair<InsertBucket,Double>>, Map.Entry<InsertBucket,Double>
public class InsertBucketCumulativeWeightPair
extends Pair<InsertBucket,Double>
Each InsertBucket has a weight, InsertBucketCumulativeWeightPair stored here is the cumulativeWeight of the
InsertBucket. If there are multiple InsertBuckets in a partition, the InsertBuckets are numbered from 1,
the cumulativeWeight of a InsertBucket is the sum of the InsertBucket weights from number 1 to its own number.
Example, there are three InsertBucket in a partition, each bucketNumber and weight is:
1) bucketNumber: 1, weight: 0.2
2) bucketNumber: 2, weight: 0.3
3) bucketNumber: 3, weight: 0.5
Each cumulativeWeight of the bucket is:
1) bucketNumber: 1, cumulativeWeight: 0.2
2) bucketNumber: 2, cumulativeWeight: 0.5
3) bucketNumber: 3, cumulativeWeight: 1.0
- See Also:
- Serialized Form