Glenn Weidner created SYSTEMML-875: -------------------------------------- Summary: 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
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.4#6332)