@Override
    public String toString() {

        return "OnDemandQuery{" +
                "inputStore=" + inputStore +
                ", selector=" + selector +
                ", outputStream=" + outputStream +
                ", type=" + type +
                '}';
    }
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