卡桑德拉+ Hector:如何在结果中向后导航/跳转?
我将非常感谢您的建议,如何使用 get_slice (列)向后导航:
如果我有这些列名称 1 2 3 4 5 6 7 8 9 10 11 12
并且我有起始列/键8
并且想要查询 4 列,我想要得到结果 8 7 6 5
或 5 6 7 8
(顺序无关紧要),但我需要向后导航。
(澄清一下,我只有起始列/键 = 8
。我不知道列 5
,所以我可以使用起始列/键 = 5< /code>.5 在这里是未知的,因此我需要向后查询,如上所述......)
如何做到这一点? “reversed=true”似乎只返回“reversed”的结果,在此示例中,这将是 11 10 9 8
。这不是我想要的,我需要向后移动光标。如何做到这一点?
非常感谢!
延斯
I would be thankfull for advice, how to navigate backwards with get_slice (columns):
If I have these colum names 1 2 3 4 5 6 7 8 9 10 11 12
and I have the start column/key 8
and want to query 4 columsn, I want to get the results 8 7 6 5
or 5 6 7 8
(order does not matter), but I need to navigate backwards.
(Just to clarify, I only have start column/key = 8
. I do not know colum 5
so I could query with start column/key = 5
. 5 is unknown here therefore I need to query backwards, as described...)
How to do this? the "reversed=true" seems only to return the results "reversed" in this example this would be 11 10 9 8
. This is not what I want, I need to move the cursor backwards. How to do this?
Thank you very much!
Jens
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
https://github.com/jbohman/logsandra/wiki/Pagination-in-Cassandra
https://github.com/jbohman/logsandra/wiki/Pagination-in-Cassandra