[HUDI-302]: simplified countInstants() method in HoodieDefaultTimeline (#997)
This commit is contained in:
committed by
vinoth chandar
parent
71ac2c0d5e
commit
20871a17b2
@@ -141,7 +141,7 @@ public class HoodieDefaultTimeline implements HoodieTimeline {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int countInstants() {
|
public int countInstants() {
|
||||||
return new Long(instants.stream().count()).intValue();
|
return instants.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user