@Override
    public int[] getQueryContextEndIndex() {

        return queryContextEndIndex;
    }
Getter method to get the outputStream of the on-demand query

@return outputStream of the on-demand query
modules/siddhi-query-api/src/main/java/io/siddhi/query/api/execution/query/OnDemandQuery.java