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 void
add(NodeData node)
Collect data for this node.void
end()
End collection.List<String>
getRecords()
Get the statistics in the form of a list of records.String
toString()
-
-
-
Constructor Detail
-
TimeMeasureCollector
public TimeMeasureCollector(StatsCollector base)
-
-
Method Detail
-
add
public void add(NodeData node)
Description copied from interface:StatsCollector
Collect data for this node.- Specified by:
add
in interfaceStatsCollector
- Parameters:
node
- the node
-
end
public void end()
Description copied from interface:StatsCollector
End collection.- Specified by:
end
in interfaceStatsCollector
-
getRecords
public List<String> getRecords()
Description copied from interface:StatsCollector
Get the statistics in the form of a list of records.- Specified by:
getRecords
in interfaceStatsCollector
- Returns:
- the results
-
-