Class TimedIterator
java.lang.Object
com.linkedin.venice.spark.datawriter.task.TimedIterator
- All Implemented Interfaces:
Iterator<org.apache.spark.sql.Row>
Wraps an
Iterator<Row> and records wall-clock timing when the iterator is exhausted.
Timing is recorded once, on the first call to hasNext() that returns false.-
Constructor Summary
ConstructorsConstructorDescriptionTimedIterator(Iterator<org.apache.spark.sql.Row> delegate, org.apache.spark.util.LongAccumulator timeNsAccumulator) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
TimedIterator
public TimedIterator(Iterator<org.apache.spark.sql.Row> delegate, org.apache.spark.util.LongAccumulator timeNsAccumulator)
-
-
Method Details