Class BinarySizeHistogram

  • All Implemented Interfaces:
    StatsCollector

    public class BinarySizeHistogram
    extends java.lang.Object
    implements StatsCollector
    Collects the histogram of binary sizes (embedded binaries and references to the datastore). Collection is done for a certain number of path levels, in addition to the root.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String[] SIZES  
    • Constructor Summary

      Constructors 
      Constructor Description
      BinarySizeHistogram​(int pathLevels)  
    • Method Summary

      All Methods Static 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.
      static java.util.List<java.lang.String> getRecordsWithSizeAndCount​(Storage storage)  
      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
    • Field Detail

      • SIZES

        public static final java.lang.String[] SIZES
    • Constructor Detail

      • BinarySizeHistogram

        public BinarySizeHistogram​(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
      • getRecordsWithSizeAndCount

        public static java.util.List<java.lang.String> getRecordsWithSizeAndCount​(Storage storage)
      • 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