Class TimeMeasureCollector
- java.lang.Object
-
- org.apache.jackrabbit.oak.index.indexer.document.flatfile.analysis.modules.TimeMeasureCollector
-
- All Implemented Interfaces:
StatsCollector
public class TimeMeasureCollector extends Object implements StatsCollector
A collector that also measures the elapsed time.
-
-
Constructor Summary
Constructors Constructor Description TimeMeasureCollector(StatsCollector base)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(NodeData node)Collect data for this node.voidend()End collection.List<String>getRecords()Get the statistics in the form of a list of records.StringtoString()
-
-
-
Constructor Detail
-
TimeMeasureCollector
public TimeMeasureCollector(StatsCollector base)
-
-
Method Detail
-
add
public void add(NodeData node)
Description copied from interface:StatsCollectorCollect data for this node.- Specified by:
addin interfaceStatsCollector- Parameters:
node- the node
-
end
public void end()
Description copied from interface:StatsCollectorEnd collection.- Specified by:
endin interfaceStatsCollector
-
getRecords
public List<String> getRecords()
Description copied from interface:StatsCollectorGet the statistics in the form of a list of records.- Specified by:
getRecordsin interfaceStatsCollector- Returns:
- the results
-
-