Package org.apache.nemo.runtime.common
Class RuntimeTestUtil
- java.lang.Object
-
- org.apache.nemo.runtime.common.RuntimeTestUtil
-
public final class RuntimeTestUtil extends java.lang.Object
Utility class for runtime unit tests.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List
flatten(java.util.List<java.util.List> listOfList)
Flattens a nested list of elements.static java.util.List
getRangedNumList(int start, int end)
Gets a list of integer pair elements in range.
-
-
-
Method Detail
-
getRangedNumList
public static java.util.List getRangedNumList(int start, int end)
Gets a list of integer pair elements in range.- Parameters:
start
- value of the range (inclusive).end
- value of the range (exclusive).- Returns:
- the list of elements.
-
flatten
public static java.util.List flatten(java.util.List<java.util.List> listOfList)
Flattens a nested list of elements.- Parameters:
listOfList
- to flattens.- Returns:
- the flattened list of elements.
-
-