private List<RoundRobinIterator> getIterators() throws SQLException { if (closed) { return Collections.emptyList(); } if (openIterators.size() > 0 && openIterators.size() == numScannersCacheExhausted) { /* * All the scanners have exhausted their cache. Submit the scanners back to the pool so that they can fetch * the next batch of records in parallel. */ initOpenIterators(fetchNextBatch()); } else if (openIterators.size() == 0 && resultIterators != null) { List<PeekingResultIterator> iterators = resultIterators.getIterators(); initOpenIterators(wrapToRoundRobinIterators(iterators)); } return openIterators; }
private List<RoundRobinIterator> getIterators() throws SQLException { if (closed) { return Collections.emptyList(); } if (openIterators.size() > 0 && openIterators.size() == numScannersCacheExhausted) { /* * All the scanners have exhausted their cache. Submit the scanners back to the pool so that they can fetch * the next batch of records in parallel. */ initOpenIterators(fetchNextBatch()); } else if (openIterators.size() == 0 && resultIterators != null) { List<PeekingResultIterator> iterators = resultIterators.getIterators(); initOpenIterators(wrapToRoundRobinIterators(iterators)); } return openIterators; }
private List<RoundRobinIterator> getIterators() throws SQLException { if (closed) { return Collections.emptyList(); } if (openIterators.size() > 0 && openIterators.size() == numScannersCacheExhausted) { /* * All the scanners have exhausted their cache. Submit the scanners back to the pool so that they can fetch * the next batch of records in parallel. */ initOpenIterators(fetchNextBatch()); } else if (openIterators.size() == 0 && resultIterators != null) { List<PeekingResultIterator> iterators = resultIterators.getIterators(); initOpenIterators(wrapToRoundRobinIterators(iterators)); } return openIterators; }