ElasticScroll implements DatabaseScrolling { @Override public DatabaseScrolling withSort(final FieldSortBuilder s) { this.sort.set(requireNonNull(s)); return this; } ElasticScroll(
    final Client client,
    final SearchRequestBuilder search,
    final TimeValue timeValue); @Override DatabaseScrolling withSort(final FieldSortBuilder s); @Override DatabaseScrolling withScrollSize(final int size); @Override DatabaseScrolling withKeepAlive(final long time, final TimeUnit unit); @Override DatabaseScrolling withTypes(final String... types); @Override DatabaseScrolling withFetchSource(final boolean fetchSource); @Override DatabaseScrolling withQuery(final QueryBuilder query); @Override void scroll(final DatabaseScroll scroll);  }
@Test public void shouldWithSort() { final FieldSortBuilder sort = new FieldSortBuilder("_doc"); scroll.withSort(sort); }