Impetus / kundera

A JPA 2.1 compliant Polyglot Object-Datastore Mapping Library for NoSQL Datastores.Please subscribe to:
http://groups.google.com/group/kundera-discuss/subscribe
Apache License 2.0
903 stars 233 forks source link

how to use select **** limit in hbase-2 #1028

Open daddyauden opened 5 years ago

daddyauden commented 5 years ago

String queryString = "Select i from xxx i where i.type = xxx and i.name = xxx";

Query query = em.createQuery(queryString).setFirstResult(0).setMaxResults(5);

List<?> resultList = query.getResultList();

real data is > 10000, but the query result is just only one, so how to write the sql?