Class DistinctBinarySizeHistogram
- java.lang.Object
-
- org.apache.jackrabbit.oak.index.indexer.document.flatfile.analysis.modules.DistinctBinarySizeHistogram
-
- All Implemented Interfaces:
StatsCollector
public class DistinctBinarySizeHistogram extends java.lang.Object implements StatsCollector
A histogram of distinct binaries. For each size range, we calculate the number of entries and number of distinct entries. The number of distinct entries is calculated using a set if the number of entries is smaller than 1024, or HyperLogLog otherwise.
-
-
Constructor Summary
Constructors Constructor Description DistinctBinarySizeHistogram(int pathLevels)
-
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.java.util.List<java.lang.String>
getRecords()
Get the statistics in the form of a list of records.java.lang.String
toString()
-
-
-
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 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
-
-