public class CartesianUtil extends Object
Constructor and Description |
---|
CartesianUtil() |
Modifier and Type | Method and Description |
---|---|
protected static void |
computeCartesian(List<EventBean[]> streamOne,
int[] subStreamNumsOne,
List<EventBean[]> streamTwo,
int[] subStreamNumsTwo,
List<EventBean[]> resultList)
Form the 2-ary cartesian product between zero or more events from 2 streams.
|
protected static void computeCartesian(List<EventBean[]> streamOne, int[] subStreamNumsOne, List<EventBean[]> streamTwo, int[] subStreamNumsTwo, List<EventBean[]> resultList)
streamOne
- is the events from stream onesubStreamNumsOne
- is the list of substream numbers to stream one to include in the productstreamTwo
- is the events from stream twosubStreamNumsTwo
- is the list of substream numbers to stream two to include in the productresultList
- is where the result of the cartesian product is added to