public RoundRobinResultIterator(List<PeekingResultIterator> iterators, QueryPlan plan) { this.resultIterators = null; this.plan = plan; this.threshold = getThreshold(); initOpenIterators(wrapToRoundRobinIterators(iterators)); }
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; }
public RoundRobinResultIterator(List<PeekingResultIterator> iterators, QueryPlan plan) { this.resultIterators = null; this.plan = plan; this.threshold = getThreshold(); initOpenIterators(wrapToRoundRobinIterators(iterators)); }
public RoundRobinResultIterator(List<PeekingResultIterator> iterators, QueryPlan plan) { this.resultIterators = null; this.plan = plan; this.threshold = getThreshold(); initOpenIterators(wrapToRoundRobinIterators(iterators)); }
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; }