@Override
    public int[] getQueryContextStartIndex() {

        return queryContextStartIndex;
    }
With time period for Incremental Aggregation.
modules/siddhi-query-api/src/main/java/io/siddhi/query/api/aggregation/Within.java