public static Within within(Expression start, Expression end) {

        return new Within(start, end);
    }
With time period for Incremental Aggregation.
modules/siddhi-query-api/src/main/java/io/siddhi/query/api/aggregation/Within.java