Hector querySuperColumns returns only partial supe

2019-07-02 10:59发布

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条回答
在下西门庆
2楼-- · 2019-07-02 11:19

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.

查看更多
登录 后发表回答