leaves12138 commented on code in PR #8175:
URL: https://github.com/apache/paimon/pull/8175#discussion_r3394466050
##########
paimon-common/src/main/java/org/apache/paimon/utils/RowRangeIndex.java:
##########
@@ -43,14 +43,28 @@ private RowRangeIndex(List<Range> ranges) {
}
public static RowRangeIndex create(List<Range> ranges) {
+ return create(ranges, true);
+ }
+
+ public static RowRangeIndex create(List<Range> ranges, boolean
mergeAdjacent) {
checkArgument(ranges != null, "Ranges cannot be null");
- return new RowRangeIndex(Range.sortAndMergeOverlap(ranges, true));
+ return new RowRangeIndex(Range.sortAndMergeOverlap(ranges,
mergeAdjacent));
}
public List<Range> ranges() {
return Collections.unmodifiableList(ranges);
}
+ public boolean contains(long start, long end) {
Review Comment:
There is already contains method in this class.
--
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]