Package org.apache.drill.exec.ops
Interface OperatorStatReceiver
public interface OperatorStatReceiver
Interface for updating a statistic. Provides just the methods
to add to or update a statistic, hiding implementation. Allows
a test-time implementation that differs from the run-time
version.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDoubleStat
(MetricDef metric, double value) Add a double value to the existing value.void
addLongStat
(MetricDef metric, long value) Add a long value to the existing value.void
setDoubleStat
(MetricDef metric, double value) Set a stat to the specified double value.void
setLongStat
(MetricDef metric, long value) Set a stat to the specified long value.void
void
stopWait()
-
Method Details
-
addLongStat
Add a long value to the existing value. Creates the stat (with an initial value of zero) if the stat does not yet exist.- Parameters:
metric
- the metric to updatevalue
- the value to add to the existing value
-
addDoubleStat
Add a double value to the existing value. Creates the stat (with an initial value of zero) if the stat does not yet exist.- Parameters:
metric
- the metric to updatevalue
- the value to add to the existing value
-
setLongStat
Set a stat to the specified long value. Creates the stat if the stat does not yet exist.- Parameters:
metric
- the metric to updatevalue
- the value to set
-
setDoubleStat
Set a stat to the specified double value. Creates the stat if the stat does not yet exist.- Parameters:
metric
- the metric to updatevalue
- the value to set
-
startWait
void startWait() -
stopWait
void stopWait()
-