HuangZhenQiu commented on code in PR #18009:
URL: https://github.com/apache/hudi/pull/18009#discussion_r2734087959
##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/source/split/DefaultHoodieSplitProvider.java:
##########
@@ -37,6 +40,16 @@ public DefaultHoodieSplitProvider() {
this.pendingSplits = new ConcurrentLinkedDeque<>();
}
+ /**
+ * Creates a DefaultHoodieSplitProvider with a custom comparator for
ordering splits.
+ *
+ * @param comparator the comparator to use for ordering splits, or null for
FIFO ordering
+ */
+ public DefaultHoodieSplitProvider(
+ @Nullable SerializableComparator<HoodieSourceSplit> comparator) {
+ this.pendingSplits = comparator == null ? new ArrayDeque<>() : new
PriorityQueue<>(comparator);
Review Comment:
Got catch. Will update.
--
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]