Class 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.
    • 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DistinctBinarySizeHistogram

        public DistinctBinarySizeHistogram​(int pathLevels)
    • Method Detail

      • add

        public void add​(NodeData node)
        Description copied from interface: StatsCollector
        Collect data for this node.
        Specified by:
        add in interface StatsCollector
        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 interface StatsCollector
        Returns:
        the results
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object