Search code examples
javapaginationcassandrakundera

Pagination in kundera-cassandra


I am using kundera-cassandra (V3.2) and want to limit a select query. This is working with following code:

TypedQuery<T> query = manager.createQuery(criteriaQuery);
query.setMaxResults(limit);

My problem is to set a start parameter. I found the method

query.setFirstResult(start);

but it does not work. Is there any solution available to tell the select query from where to start? I cannot do that on application level because the query is used by a REST service method.


Solution

  • You are looking for limit, offset queries and they are not supported by Kundera-Cassandra as there is no support on Cassandra natively.