[MINOR] fix typo (#3640)
This commit is contained in:
@@ -189,13 +189,13 @@ public class JavaUpsertPartitioner<T extends HoodieRecordPayload<T>> implements
|
|||||||
|
|
||||||
// Go over all such buckets, and assign weights as per amount of incoming inserts.
|
// Go over all such buckets, and assign weights as per amount of incoming inserts.
|
||||||
List<InsertBucketCumulativeWeightPair> insertBuckets = new ArrayList<>();
|
List<InsertBucketCumulativeWeightPair> insertBuckets = new ArrayList<>();
|
||||||
double curentCumulativeWeight = 0;
|
double currentCumulativeWeight = 0;
|
||||||
for (int i = 0; i < bucketNumbers.size(); i++) {
|
for (int i = 0; i < bucketNumbers.size(); i++) {
|
||||||
InsertBucket bkt = new InsertBucket();
|
InsertBucket bkt = new InsertBucket();
|
||||||
bkt.bucketNumber = bucketNumbers.get(i);
|
bkt.bucketNumber = bucketNumbers.get(i);
|
||||||
bkt.weight = (1.0 * recordsPerBucket.get(i)) / pStat.getNumInserts();
|
bkt.weight = (1.0 * recordsPerBucket.get(i)) / pStat.getNumInserts();
|
||||||
curentCumulativeWeight += bkt.weight;
|
currentCumulativeWeight += bkt.weight;
|
||||||
insertBuckets.add(new InsertBucketCumulativeWeightPair(bkt, curentCumulativeWeight));
|
insertBuckets.add(new InsertBucketCumulativeWeightPair(bkt, currentCumulativeWeight));
|
||||||
}
|
}
|
||||||
LOG.info("Total insert buckets for partition path " + partitionPath + " => " + insertBuckets);
|
LOG.info("Total insert buckets for partition path " + partitionPath + " => " + insertBuckets);
|
||||||
partitionPathToInsertBucketInfos.put(partitionPath, insertBuckets);
|
partitionPathToInsertBucketInfos.put(partitionPath, insertBuckets);
|
||||||
|
|||||||
@@ -232,13 +232,13 @@ public class UpsertPartitioner<T extends HoodieRecordPayload<T>> extends Partiti
|
|||||||
|
|
||||||
// Go over all such buckets, and assign weights as per amount of incoming inserts.
|
// Go over all such buckets, and assign weights as per amount of incoming inserts.
|
||||||
List<InsertBucketCumulativeWeightPair> insertBuckets = new ArrayList<>();
|
List<InsertBucketCumulativeWeightPair> insertBuckets = new ArrayList<>();
|
||||||
double curentCumulativeWeight = 0;
|
double currentCumulativeWeight = 0;
|
||||||
for (int i = 0; i < bucketNumbers.size(); i++) {
|
for (int i = 0; i < bucketNumbers.size(); i++) {
|
||||||
InsertBucket bkt = new InsertBucket();
|
InsertBucket bkt = new InsertBucket();
|
||||||
bkt.bucketNumber = bucketNumbers.get(i);
|
bkt.bucketNumber = bucketNumbers.get(i);
|
||||||
bkt.weight = (1.0 * recordsPerBucket.get(i)) / pStat.getNumInserts();
|
bkt.weight = (1.0 * recordsPerBucket.get(i)) / pStat.getNumInserts();
|
||||||
curentCumulativeWeight += bkt.weight;
|
currentCumulativeWeight += bkt.weight;
|
||||||
insertBuckets.add(new InsertBucketCumulativeWeightPair(bkt, curentCumulativeWeight));
|
insertBuckets.add(new InsertBucketCumulativeWeightPair(bkt, currentCumulativeWeight));
|
||||||
}
|
}
|
||||||
LOG.info("Total insert buckets for partition path " + partitionPath + " => " + insertBuckets);
|
LOG.info("Total insert buckets for partition path " + partitionPath + " => " + insertBuckets);
|
||||||
partitionPathToInsertBucketInfos.put(partitionPath, insertBuckets);
|
partitionPathToInsertBucketInfos.put(partitionPath, insertBuckets);
|
||||||
|
|||||||
Reference in New Issue
Block a user