Cassandra Datastax Driver set paging state on Accessor

陌路散爱 提交于 2019-12-02 02:19:52

I agree that this would be really nice to have.

One way to work with this for now would be to have your accessor return a Statement, i.e.:

@Query("SELECT * FROM ks.tbl WHERE id = ?")
Statement getAllById(@Param("id") UUID userId);

And then from there you call setPagingState on the Statement returned and execute it.

I agree that this isn't as nice as providing the paging state as a parameter to the Accessor, so I went ahead and opened up JAVA-1103.

You can do it with Achilles:

manager
   .select()
    .allColumns_FromBaseTable()
    .where()
    .partitionKey_Eq(...)
    ...
    .withPagingState(PagingState.fromString(...))
    .getList();
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!