[ 
https://issues.apache.org/jira/browse/SYSTEMML-875?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Glenn Weidner closed SYSTEMML-875.
----------------------------------

> Wrap ArrayList with LazyIterableIterator
> ----------------------------------------
>
>                 Key: SYSTEMML-875
>                 URL: https://issues.apache.org/jira/browse/SYSTEMML-875
>             Project: SystemML
>          Issue Type: Sub-task
>          Components: Runtime
>            Reporter: Glenn Weidner
>             Fix For: Not Applicable
>
>
> Add LazyIterableIterator wrappers for classes implementing 
> PairFlatMapFunction but returning a collection such as:
> ArrayList<Tuple2<MatrixIndexes, MatrixBlock>> ret = new 
> ArrayList<Tuple2<MatrixIndexes, MatrixBlock>>();
> Wrapping the ArrayList with LazyIterableIterator allows the return value to 
> be both Iterable and Iterator to maintain backward compatibility.  An example 
> of a class where this pattern would need to be refactored is:
> runtime.instructions.spark.CumulativeOffsetSPInstruction 
> (RDDCumSplitFunction.call).



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to