Hector querySuperColumns returns only partial super columns

不羁岁月 提交于 2019-12-10 19:41:31

问题


I have the following code intending to grab over all the supercolumns for a key and then find a target data. but it turns out that it only return me partial super columns (for example - 100 out of 400). Is there any reason why and how to fix it?

        SuperCfResult<UUID, Long, UUID> superCfResult = sTemplate.querySuperColumns(key);
        Collection<Long> supercolumns = superCfResult.getSuperColumns();

回答1:


I'm not terribly familiar with the Hector template API, but the default unless you specify a count is typically 100, so you should try calling sTemplate.setCount() and specifying a higher value--possibly Integer.MAX_VALUE.



来源:https://stackoverflow.com/questions/10939411/hector-querysupercolumns-returns-only-partial-super-columns

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