Class IndexStats

java.lang.Object
org.cojen.tupl.diag.IndexStats
All Implemented Interfaces:
Serializable, Cloneable

public class IndexStats extends Object implements Cloneable, Serializable
Collection of stats from the analyze method.
See Also:
  • Field Details

    • entryCount

      public double entryCount
      The estimated number of index entries.
    • keyBytes

      public double keyBytes
      The estimated amount of bytes occupied by keys in the index.
    • valueBytes

      public double valueBytes
      The estimated amount of bytes occupied by values in the index.
    • freeBytes

      public double freeBytes
      The estimated amount of free bytes in the index.
    • totalBytes

      public double totalBytes
      The estimated total amount of bytes in the index.
  • Constructor Details

    • IndexStats

      public IndexStats()
    • IndexStats

      public IndexStats(double entryCount, double keyBytes, double valueBytes, double freeBytes, double totalBytes)
  • Method Details

    • add

      public IndexStats add(IndexStats augend)
      Adds stats into a new object.
    • subtract

      public IndexStats subtract(IndexStats subtrahend)
      Subtract stats into a new object.
    • divide

      public IndexStats divide(double scalar)
      Divide the stats by a scalar into a new object.
    • round

      public IndexStats round()
      Round the stats to whole numbers into a new object.
    • divideAndRound

      public IndexStats divideAndRound(double scalar)
      Divide the stats by a scalar and round to whole numbers into a new object.
    • clone

      public IndexStats clone()
      Overrides:
      clone in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object