You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@systemml.apache.org by "Glenn Weidner (JIRA)" <ji...@apache.org> on 2016/08/28 16:44:20 UTC
[jira] [Created] (SYSTEMML-875) Wrap ArrayList with
LazyIterableIterator
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)