@Test public void testScroll() { storage.append(jsonEntries); QueryBuilder queryBuilder = new AuditQueryBuilder(); ScrollResult<String> scrollResult = storage.scroll(queryBuilder, 10, 1); assertNotNull(scrollResult.getScrollId()); List<String> results = scrollResult.getResults(); assertEquals(2, scrollResult.getResults().size()); results.forEach(this::getLogEntryFromJson); }
@Override public ScrollResult<String> scroll(String scrollId) { return cursorService.scroll(scrollId); }
DirectoryAuditStorage implements AuditStorage { @Override public ScrollResult<String> scroll(String scrollId) { return cursorService.scroll(scrollId); } }
DirectoryAuditStorage implements AuditStorage { @Override public ScrollResult<String> scroll(String scrollId) { return cursorService.scroll(scrollId); }  }
DirectoryAuditStorage implements AuditStorage { @Override public ScrollResult<String> scroll(String scrollId) { return cursorService.scroll(scrollId); }  @Override void append(List<String> jsonEntries); @Override ScrollResult<String> scroll(String scrollId); @Override ScrollResult<String> scroll(QueryBuilder queryBuilder, int batchSize, int keepAlive); }
DirectoryAuditStorage implements AuditStorage { @Override public ScrollResult<String> scroll(String scrollId) { return cursorService.scroll(scrollId); }  @Override void append(List<String> jsonEntries); @Override ScrollResult<String> scroll(String scrollId); @Override ScrollResult<String> scroll(QueryBuilder queryBuilder, int batchSize, int keepAlive); static final String NAME; static final String DIRECTORY_NAME; static final String ID_COLUMN; static final String JSON_COLUMN; }