liveReturned += counter.counted(); sentQueryIterator.close();
liveReturned += counter.counted(); sentQueryIterator.close();
liveReturned += counter.counted(); sentQueryIterator.close();
count += counter.counted();
count += counter.counted();
count += counter.counted();
@Override public void onClose() { // In some case like GROUP BY a counter need to know when the processing is completed. counter.onClose(); recordLast(lastKey, lastRow); remaining -= counter.counted(); // If the clustering of the last row returned is a static one, it means that the partition was only // containing data within the static columns. If the clustering of the last row returned is empty // it means that there is only one row per partition. Therefore, in both cases there are no data remaining // within the partition. if (lastRow != null && (lastRow.clustering() == Clustering.STATIC_CLUSTERING || lastRow.clustering() == Clustering.EMPTY)) { remainingInPartition = 0; } else { remainingInPartition -= counter.countedInCurrentPartition(); } exhausted = pageLimits.isExhausted(counter); }
@Override public void onClose() { // In some case like GROUP BY a counter need to know when the processing is completed. counter.onClose(); recordLast(lastKey, lastRow); remaining -= counter.counted(); // If the clustering of the last row returned is a static one, it means that the partition was only // containing data within the static columns. If the clustering of the last row returned is empty // it means that there is only one row per partition. Therefore, in both cases there are no data remaining // within the partition. if (lastRow != null && (lastRow.clustering() == Clustering.STATIC_CLUSTERING || lastRow.clustering() == Clustering.EMPTY)) { remainingInPartition = 0; } else { remainingInPartition -= counter.countedInCurrentPartition(); } exhausted = pageLimits.isExhausted(counter); }
@Override public void onClose() { // In some case like GROUP BY a counter need to know when the processing is completed. counter.onClose(); recordLast(lastKey, lastRow); remaining -= counter.counted(); // If the clustering of the last row returned is a static one, it means that the partition was only // containing data within the static columns. If the clustering of the last row returned is empty // it means that there is only one row per partition. Therefore, in both cases there are no data remaining // within the partition. if (lastRow != null && (lastRow.clustering() == Clustering.STATIC_CLUSTERING || lastRow.clustering() == Clustering.EMPTY)) { remainingInPartition = 0; } else { remainingInPartition -= counter.countedInCurrentPartition(); } exhausted = pageLimits.isExhausted(counter); }
public boolean isExhausted(Counter counter) { return counter.counted() < count(); }
public boolean isExhausted(Counter counter) { return counter.counted() < count(); }
public boolean isExhausted(Counter counter) { return counter.counted() < count(); }
@Override public boolean isExhausted(Counter counter) { return ((GroupByAwareCounter) counter).rowCounted < rowLimit && counter.counted() < groupLimit; }
private int counted(Counter counter) { return command.limits().isGroupByLimit() ? counter.rowCounted() : counter.counted(); }
@Override public boolean isExhausted(Counter counter) { return ((GroupByAwareCounter) counter).rowCounted < rowLimit && counter.counted() < groupLimit; }
@Override public boolean isExhausted(Counter counter) { return ((GroupByAwareCounter) counter).rowCounted < rowLimit && counter.counted() < groupLimit; }
private int counted(Counter counter) { return command.limits().isGroupByLimit() ? counter.rowCounted() : counter.counted(); }
private int counted(Counter counter) { return command.limits().isGroupByLimit() ? counter.rowCounted() : counter.counted(); }