@Override
    public boolean equals(Object o) {

        if (this == o) {
            return true;
        }
        if (o == null) {
            return false;
        }
        OnDemandQuery that;
        if (o instanceof StoreQuery) {
            that = ((StoreQuery) o).getOnDemandQuery();
        } else {
            if (getClass() != o.getClass()) {
                return false;
            }
            that = (OnDemandQuery) o;
        }
        if (inputStore != null ? !inputStore.equals(that.inputStore) : that.inputStore != null) {
            return false;
        }
        if (outputStream != null ? !outputStream.equals(that.outputStream) : that.outputStream != null) {
            return false;
        }
        return selector != null ? selector.equals(that.selector) : that.selector == null;
    }
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