Package org.basex.index.stats
Class IndexStats
java.lang.Object
org.basex.index.stats.IndexStats
This class assembles some index statistics.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(byte[] tx, int oc) Adds the specified token.booleanadding(int oc) Checks if the specified number of occurrence will be remembered.voidprint(TokenBuilder tb) Prints the list to the specified token builder.
-
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 addedoc- number of occurrences
-
print
Prints the list to the specified token builder.- Parameters:
tb- token builder reference
-