Jakob Homan created HUDI-302:
--------------------------------

             Summary: Simplify count operation in 
HoodieDefaultTimeline::countInstants
                 Key: HUDI-302
                 URL: https://issues.apache.org/jira/browse/HUDI-302
             Project: Apache Hudi (incubating)
          Issue Type: Bug
          Components: Common Core
            Reporter: Jakob Homan


In {{HoodieDefaultTimeline}} there's a conversion of an List to a stream in 
order to count the elements.  This is unnecessary since the underlying List has 
a {{size()}} method that returns the same result.
{code:java}
@Override
public int countInstants() {
 return new Long(instants.stream().count()).intValue();
}
{code}
*Note:* This is a newbie ticket designed as a starter task for a new 
contributor.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to