if (maxValues > 0 && clicks.size() >= maxValues) {
break;
}
// parse the qualifier back into its details
String[] kp = Bytes.toString(entry.getKey()).split("\u0000");
StatisticsCategory category =
StatisticsCategory.forCode(kp[1].charAt(0));
double clickCount = Bytes.toLong(entry.getValue());
switch (category) {
case CLICK:
maxValue = Math.max(maxValue, clickCount);