QueryBuilder { public QueryBuilder<Q> offset(int offset) { this.offset = offset; return this; } protected  QueryBuilder(); static QueryBuilder<Query<LinkedHashMap<String, Value>>> builder(); static QueryBuilder<KeywordBean> keywordQueryBuilder(IsoLanguagesMapper mapper, List<String> languages); static QueryBuilder<KeywordBean> keywordQueryBuilder(IsoLanguagesMapper mapper, Collection<String> languages, boolean requireBoundedBy); static QueryBuilder<KeywordBean> keywordQueryBuilder(IsoLanguagesMapper mapper, String... languages); static QueryBuilder<String> languagesQueryBuilder(final IsoLanguagesMapper mapper); @SuppressWarnings("unchecked") Query<Q> build(); QueryBuilder<Q> select(Selector selector, boolean require); QueryBuilder<Q> selectId(); QueryBuilder<Q> limit(int limit); QueryBuilder<Q> distinct(boolean distinct); QueryBuilder<Q> offset(int offset); @SuppressWarnings("unchecked") QueryBuilder<N> interpreter(ResultInterpreter<N> newInterpreter); QueryBuilder<Q> where(String clause); QueryBuilder<Q> where(Where where); @Override String toString();  }
@Test public void offset() throws IOException, MalformedQueryException, QueryEvaluationException, AccessDeniedException { QueryResultsTable noOffset = builder().selectId().build().rawExecute(thesaurus); QueryResultsTable offset = builder().selectId().offset(2).build().rawExecute(thesaurus); assertEquals(noOffset.getValue(2, 0), offset.getValue(0, 0)); }