Class Statistics

java.lang.Object
net.sf.saxon.tree.tiny.Statistics

public class Statistics extends Object
Statistics on the size of TinyTree instances, kept so that the system can learn how much space to allocate to new trees
  • Constructor Details Link icon

    • Statistics Link icon

      public Statistics()
    • Statistics Link icon

      public Statistics(int nodes, int atts, int namespaces, int chars)
  • Method Details Link icon

    • getAverageNodes Link icon

      public int getAverageNodes()
    • getAverageAttributes Link icon

      public int getAverageAttributes()
    • getAverageNamespaces Link icon

      public int getAverageNamespaces()
    • getAverageCharacters Link icon

      public int getAverageCharacters()
    • updateStatistics Link icon

      public void updateStatistics(int numberOfNodes, int numberOfAttributes, int numberOfNamespaces, LargeTextBuffer textBuffer)
      Update the statistics held in static data. We don't bother to synchronize, on the basis that it doesn't matter if the stats are wrong.
      Parameters:
      numberOfNodes - the number of (non-attribute, non-namespace) nodes
      numberOfAttributes - the number of attribute nodes
      numberOfNamespaces - the number of namespace bindings (deltas on namespace nodes)
      textBuffer - the text buffer
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object