Question

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();
Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top