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

Popular posts from this blog

python - Best design pattern for collection of objects -

go - serving up pdfs using golang -

python - django admin: changing the way a field (w/ relationship to another model) is submitted on a form so that it can be submitted multiple times -