Class NodeCount
- java.lang.Object
-
- org.apache.jackrabbit.oak.index.indexer.document.flatfile.analysis.modules.NodeCount
-
- All Implemented Interfaces:
StatsCollector
public class NodeCount extends java.lang.Object implements StatsCollector
A collector for approximate node counts.
-
-
Constructor Summary
Constructors Constructor Description NodeCount(int resolution, long seed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(NodeData node)
Collect data for this node.java.util.List<java.lang.String>
getRecords()
Get the statistics in the form of a list of records.java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.jackrabbit.oak.index.indexer.document.flatfile.analysis.modules.StatsCollector
end
-
-
-
-
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
-
getRecords
public java.util.List<java.lang.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
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-