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

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -