class ScrollSpliterator extends AbstractSpliterator<T> {

    @Override
    public long estimateSize() {
        if (requestResponse == null) {
            executeQuery();
        }
        return hits.getTotal();
    }

    public  ScrollSpliterator(SelectMultiQuery query, Function<SelectMultiQuery, RequestResponse<T>> repository,
        int scrollTimeout, int limit);

}