コード例 #1
0
  private static Operator createJoinOperator() {
    Window timeslide = Window.createTimeSlideWindow(ConstInTestCase.I_100);
    Window lengthslide = Window.createLengthSlideWindow(ConstInTestCase.I_100);

    JoinFunctionOperator op = new JoinFunctionOperator("join", 1);
    op.setLeftWindow(timeslide);
    op.setRightWindow(lengthslide);
    op.setFilterAfterJoinExpression("s1.a> 1 and s1.a<1000");
    op.setJoinExpression("s1.a=s2.a");
    op.setLeftStreamName("s1");
    op.setRightStreamName("s2");
    op.setJoinType(JoinType.INNER_JOIN);
    op.setOutputExpression("s1.a,s2.b,s2.c");
    return op;
  }
コード例 #2
0
 private Window createWindow() {
   return Window.createGroupTimeSlideWindow(1, "id");
 }