@Test void getBatch() { final int batchSize = 2; BatchingQueryResult<Entity> bqr = new DummyBatchingQueryResult(batchSize); assertEquals(4, size(bqr)); }
@Override protected List<E> getBatch(int offset, int batchSize) { Query<E> batchQuery; if (offset != query.getOffset() || batchSize != query.getPageSize()) { batchQuery = new QueryImpl<>(query).setOffset(offset).setPageSize(batchSize); } else { batchQuery = query; } return getBatch(batchQuery); }
BatchingQueryResult extends BatchingIterable<E> { @Override protected List<E> getBatch(int offset, int batchSize) { Query<E> batchQuery; if (offset != query.getOffset() || batchSize != query.getPageSize()) { batchQuery = new QueryImpl<>(query).setOffset(offset).setPageSize(batchSize); } else { batchQuery = query; } return getBatch(batchQuery); } }
BatchingQueryResult extends BatchingIterable<E> { @Override protected List<E> getBatch(int offset, int batchSize) { Query<E> batchQuery; if (offset != query.getOffset() || batchSize != query.getPageSize()) { batchQuery = new QueryImpl<>(query).setOffset(offset).setPageSize(batchSize); } else { batchQuery = query; } return getBatch(batchQuery); } BatchingQueryResult(int batchSize, Query<E> query); }
BatchingQueryResult extends BatchingIterable<E> { @Override protected List<E> getBatch(int offset, int batchSize) { Query<E> batchQuery; if (offset != query.getOffset() || batchSize != query.getPageSize()) { batchQuery = new QueryImpl<>(query).setOffset(offset).setPageSize(batchSize); } else { batchQuery = query; } return getBatch(batchQuery); } BatchingQueryResult(int batchSize, Query<E> query);  }
BatchingQueryResult extends BatchingIterable<E> { @Override protected List<E> getBatch(int offset, int batchSize) { Query<E> batchQuery; if (offset != query.getOffset() || batchSize != query.getPageSize()) { batchQuery = new QueryImpl<>(query).setOffset(offset).setPageSize(batchSize); } else { batchQuery = query; } return getBatch(batchQuery); } BatchingQueryResult(int batchSize, Query<E> query);   }