for (int docid : docsToFetch) {
long start = System.nanoTime();
_idxReader.document(docid);
long end = System.nanoTime();
_collector.collect(new Stats((end - start), null));
}
} catch (Exception e) {
e.printStackTrace();
_collector.collect(new Stats(0L, e));
}
try {
Thread.sleep(_throttleWait);
} catch (InterruptedException e) {
e.printStackTrace();