yifan-c commented on code in PR #34:
URL:
https://github.com/apache/cassandra-analytics/pull/34#discussion_r1465745465
##########
cassandra-analytics-core/src/main/java/org/apache/cassandra/spark/bulkwriter/TokenPartitioner.java:
##########
@@ -111,13 +114,13 @@ private void setupTokenRangeMap(boolean randomize)
partitionMap = TreeRangeMap.create();
reversePartitionMap = new HashMap<>();
- final AtomicInteger nextPartitionId = new AtomicInteger(0);
- final List<Range<BigInteger>> subRanges =
tokenRangeMapping.getRangeMap()
-
.asMapOfRanges()
- .keySet()
- .stream()
- .flatMap(tr
-> RangeUtils.split(tr, numberSplits).stream())
-
.collect(Collectors.toList());
+ AtomicInteger nextPartitionId = new AtomicInteger(0);
+ List<Range<BigInteger>> subRanges = tokenRangeMapping.getRangeMap()
+ .asMapOfRanges()
+ .keySet()
+ .stream()
+ .flatMap(tr ->
RangeUtils.split(tr, numberSplits).stream())
+
.collect(Collectors.toList());
Review Comment:
It just removes the `final`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]