@Override public SortedKeyValueIterator<Key,Value> deepCopy(IteratorEnvironment env) { return new StatsIterator(source.deepCopy(env), seekCounter, readCounter); }
void close(boolean sawErrors) { if (memIters != null) { tablet.getTabletMemory().returnIterators(memIters); memIters = null; tablet.getDatafileManager().returnFilesForScan(fileReservationId); fileReservationId = -1; } synchronized (tablet) { if (tablet.removeScan(this) == 0) tablet.notifyAll(); } if (fileManager != null) { fileManager.releaseOpenFiles(sawErrors); fileManager = null; } if (statsIterator != null) { statsIterator.report(); } }
@Override public SortedKeyValueIterator<Key,Value> deepCopy(IteratorEnvironment env) { return new StatsIterator(getSource().deepCopy(env), seekCounter, readCounter); }
fileManager, files, options.getAuthorizations(), samplerConfig); statsIterator = new StatsIterator(multiIter, TabletServer.seekCount, tablet.getScannedCounter());
private void close(boolean sawErrors) { if (memIters != null) { tabletMemory.returnIterators(memIters); memIters = null; datafileManager.returnFilesForScan(fileReservationId); fileReservationId = -1; } synchronized (Tablet.this) { activeScans.remove(this); if (activeScans.size() == 0) Tablet.this.notifyAll(); } if (fileManager != null) { fileManager.releaseOpenFiles(sawErrors); fileManager = null; } if (statsIterator != null) { statsIterator.report(); } }
statsIterator = new StatsIterator(multiIter, TabletServer.seekCount, scannedCount);
void close(boolean sawErrors) { if (memIters != null) { tablet.getTabletMemory().returnIterators(memIters); memIters = null; tablet.getDatafileManager().returnFilesForScan(fileReservationId); fileReservationId = -1; } synchronized (tablet) { if (tablet.removeScan(this) == 0) tablet.notifyAll(); } if (fileManager != null) { fileManager.releaseOpenFiles(sawErrors); fileManager = null; } if (statsIterator != null) { statsIterator.report(); } }
samplerConfig); statsIterator = new StatsIterator(multiIter, TabletServer.seekCount, tablet.getScannedCounter());