@Override public PeekingResultIterator call() throws Exception { long startTime = System.currentTimeMillis(); if (logger.isDebugEnabled()) { logger.debug(LogUtil.addCustomAnnotations("Id: " + scanId + ", Time: " + (System.currentTimeMillis() - startTime) + "ms, Scan: " + scan, ScanUtil.getCustomAnnotations(scan))); } PeekingResultIterator iterator = iteratorFactory.newIterator(context, tableResultItr, scan, physicalTableName, ParallelIterators.this.plan); if (initFirstScanOnly) { if ((!isReverse && scanLocation.isFirstScan()) || (isReverse && scanLocation.isLastScan())) { // Fill the scanner's cache. This helps reduce latency since we are parallelizing the I/O needed. iterator.peek(); } } else { iterator.peek(); } allIterators.add(iterator); return iterator; }
@Override public PeekingResultIterator call() throws Exception { long startTime = System.currentTimeMillis(); if (logger.isDebugEnabled()) { logger.debug(LogUtil.addCustomAnnotations("Id: " + scanId + ", Time: " + (System.currentTimeMillis() - startTime) + "ms, Scan: " + scan, ScanUtil.getCustomAnnotations(scan))); } PeekingResultIterator iterator = iteratorFactory.newIterator(context, tableResultItr, scan, physicalTableName, ParallelIterators.this.plan); if (initFirstScanOnly) { if ((!isReverse && scanLocation.isFirstScan()) || (isReverse && scanLocation.isLastScan())) { // Fill the scanner's cache. This helps reduce latency since we are parallelizing the I/O needed. iterator.peek(); } } else { iterator.peek(); } allIterators.add(iterator); return iterator; }
@Override public PeekingResultIterator call() throws Exception { long startTime = System.currentTimeMillis(); if (logger.isDebugEnabled()) { logger.debug(LogUtil.addCustomAnnotations("Id: " + scanId + ", Time: " + (System.currentTimeMillis() - startTime) + "ms, Scan: " + scan, ScanUtil.getCustomAnnotations(scan))); } PeekingResultIterator iterator = iteratorFactory.newIterator(context, tableResultItr, scan, physicalTableName, ParallelIterators.this.plan); if (initFirstScanOnly) { if ((!isReverse && scanLocation.isFirstScan()) || (isReverse && scanLocation.isLastScan())) { // Fill the scanner's cache. This helps reduce latency since we are parallelizing the I/O needed. iterator.peek(); } } else { iterator.peek(); } allIterators.add(iterator); return iterator; }