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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -