public interface TraversalMetrics
| Modifier and Type | Field and Description | 
|---|---|
| static String | ELEMENT_COUNT_IDThe MetricsId used to obtain the element count via Metrics.getCount(String countKey) | 
| static String | PERCENT_DURATION_KEYThe annotation key used to obtain the percent duration via Metrics.getAnnotation(String key) | 
| static String | TRAVERSER_COUNT_IDThe MetricsId used to obtain the traverser count via Metrics.getCount(String countKey) | 
| Modifier and Type | Method and Description | 
|---|---|
| long | getDuration(TimeUnit unit)Get the total duration taken by the Traversal. | 
| Collection<? extends Metrics> | getMetrics()Gets all the metrics. | 
| Metrics | getMetrics(int stepIndex)Get an individual Metrics object by the index of the profiled Step. | 
| Metrics | getMetrics(String id)Get an individual Metrics object by the id of the profiled Step. | 
static final String ELEMENT_COUNT_ID
static final String TRAVERSER_COUNT_ID
static final String PERCENT_DURATION_KEY
long getDuration(TimeUnit unit)
Metrics getMetrics(int stepIndex)
Metrics getMetrics(String id)
Collection<? extends Metrics> getMetrics()
Copyright © 2013–2022 Apache Software Foundation. All rights reserved.