[HUDI-1136] Add back findInstantsAfterOrEquals to the HoodieTimeline class.
This commit is contained in:
@@ -132,6 +132,13 @@ public class HoodieDefaultTimeline implements HoodieTimeline {
|
|||||||
details);
|
details);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public HoodieDefaultTimeline findInstantsAfterOrEquals(String commitTime, int numCommits) {
|
||||||
|
return new HoodieDefaultTimeline(instants.stream()
|
||||||
|
.filter(s -> HoodieTimeline.compareTimestamps(s.getTimestamp(), GREATER_THAN_OR_EQUALS, commitTime))
|
||||||
|
.limit(numCommits), details);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public HoodieDefaultTimeline findInstantsBefore(String instantTime) {
|
public HoodieDefaultTimeline findInstantsBefore(String instantTime) {
|
||||||
return new HoodieDefaultTimeline(instants.stream()
|
return new HoodieDefaultTimeline(instants.stream()
|
||||||
|
|||||||
@@ -140,6 +140,11 @@ public interface HoodieTimeline extends Serializable {
|
|||||||
*/
|
*/
|
||||||
HoodieTimeline filterPendingCompactionTimeline();
|
HoodieTimeline filterPendingCompactionTimeline();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new Timeline with all the instants after startTs.
|
||||||
|
*/
|
||||||
|
HoodieTimeline findInstantsAfterOrEquals(String commitTime, int numCommits);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new Timeline with instants after startTs and before or on endTs.
|
* Create a new Timeline with instants after startTs and before or on endTs.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user