Package org.apache.pinot.spi.metrics
Interface PinotTimer
-
- All Superinterfaces:
PinotMetered,PinotMetric
public interface PinotTimer extends PinotMetered
A timer metric which aggregates timing durations and provides duration statistics, plus throughput statistics viaPinotMeter.
-
-
Method Summary
-
Methods inherited from interface org.apache.pinot.spi.metrics.PinotMetered
count, eventType, fifteenMinuteRate, fiveMinuteRate, getMetered, meanRate, oneMinuteRate, rateUnit
-
Methods inherited from interface org.apache.pinot.spi.metrics.PinotMetric
getMetric
-
-
-
-
Method Detail
-
update
void update(long duration, TimeUnit unit)Adds a recorded duration. It's basically the same as using time() and then stop(). Hereby we can update the time duration by calling just one method. This is used to log the time span of each of the phase during query execution in Pinot.- Parameters:
duration- the length of the durationunit- the scale unit ofduration
-
getTimer
Object getTimer()
Returns the actual object of timer.
-
-