Class IndexStats

java.lang.Object
org.basex.index.stats.IndexStats

public final class IndexStats extends Object
This class assembles some index statistics.
Author:
BaseX Team 2005-21, BSD License, Christian Gruen
  • Constructor Details

    • IndexStats

      public IndexStats(int max)
      Default constructor.
      Parameters:
      max - maximum number of index occurrences to print
  • Method Details

    • adding

      public boolean adding(int oc)
      Checks if the specified number of occurrence will be remembered.
      Parameters:
      oc - number of occurrences
      Returns:
      result of check
    • add

      public void add(byte[] tx, int oc)
      Adds the specified token.
      Parameters:
      tx - token to be added
      oc - number of occurrences
    • print

      public void print(TokenBuilder tb)
      Prints the list to the specified token builder.
      Parameters:
      tb - token builder reference