问题
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