rest - cursor support for cassandra in java -
am writing rest service has cassandra storage. request body have {"offset":100, "startindex":200}. above request need fetch 100 rows starting 200th row. want done in cassandra. did go through setfetchsize , paging in cassandra couldn't make out out of it. below sample code fetching records table
public interface cassandraaccessor { @query("select * usertable") result<user> getall(); }
getdata method
list<user> list = null; try { cassandraaccessor accessor = createaccessor(cassandraaccessor.class); result<user> result = accessor.getall(); list = result.all();
can me modify code meet requirement? in advance
Comments
Post a Comment