@Override
    public boolean equals(Object o) {

        if (this == o) {
            return true;
        } else if (o instanceof OnDemandQuery) {
            return onDemandQuery.equals(o);
        } else {
            return o instanceof StoreQuery && onDemandQuery.equals(((StoreQuery) o).getOnDemandQuery());
        }
    }
Getter method to get the outputStream of the store query

@return outputStream of the store query
modules/siddhi-query-api/src/main/java/io/siddhi/query/api/execution/query/StoreQuery.java