Hector querySuperColumns仅返回部分超级列 [英] Hector querySuperColumns returns only partial super columns

查看:170
本文介绍了Hector querySuperColumns仅返回部分超级列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下代码打算抓取一个键的所有超列,然后找到目标数据。但结果是它只返回部分超级列(例如 - 400 400)。有什么原因为什么和如何解决它?

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();


推荐答案

我不太熟悉Hector模板API ,但是默认除非你指定一个计数通常是100,所以你应该尝试调用 sTemplate.setCount()并指定一个更高的值 - 可能 Integer.MAX_VALUE

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.

这篇关于Hector querySuperColumns仅返回部分超级列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆