This is an automated email from the ASF dual-hosted git repository.
kfaraz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/druid.git
The following commit(s) were added to refs/heads/master by this push:
new 51876b54235 Refine javadoc for VersionedIntervalTimeline#add. (#18775)
51876b54235 is described below
commit 51876b54235424fde79c73b5d9e0a80e2748e0a4
Author: Gian Merlino <[email protected]>
AuthorDate: Sun Nov 23 11:49:07 2025 -0800
Refine javadoc for VersionedIntervalTimeline#add. (#18775)
---
.../main/java/org/apache/druid/timeline/VersionedIntervalTimeline.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/processing/src/main/java/org/apache/druid/timeline/VersionedIntervalTimeline.java
b/processing/src/main/java/org/apache/druid/timeline/VersionedIntervalTimeline.java
index c3bd293e433..a2f2699c41c 100644
---
a/processing/src/main/java/org/apache/druid/timeline/VersionedIntervalTimeline.java
+++
b/processing/src/main/java/org/apache/druid/timeline/VersionedIntervalTimeline.java
@@ -178,7 +178,8 @@ public class VersionedIntervalTimeline<VersionType,
ObjectType extends Overshado
/**
* Add a single partition chunk entry to this timeline. Avoid calling this
in a loop, since it
- * is O(objects in holder) and can therefore creates O(N^2) situations.
Instead use {@link #addAll(Iterator)}
+ * is O(objects in holder), and can therefore creates O(N^2) situations.
This happens due to calling
+ * {@link PartitionHolder#isComplete()} on each addition. Instead use {@link
#addAll(Iterator)}
* if you have many objects to add.
*/
public void add(final Interval interval, VersionType version,
PartitionChunk<ObjectType> object)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]