org.basex.index.stats
Class IndexStats

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

public final class IndexStats
extends java.lang.Object

This class assembles some index statistics.

Author:
BaseX Team 2005-12, BSD License, Christian Gruen

Constructor Summary
IndexStats(int maxstat)
          Default constructor.
 
Method Summary
 void add(byte[] tx)
          Adds the specified token.
 boolean adding(int oc)
          Checks if the specified number of occurrence will be remembered.
 void print(TokenBuilder tb)
          Prints the list to the specified token builder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexStats

public IndexStats(int maxstat)
Default constructor.

Parameters:
maxstat - maximum number of index occurrences to print
Method Detail

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)
Adds the specified token.

Parameters:
tx - token to be added

print

public void print(TokenBuilder tb)
Prints the list to the specified token builder.

Parameters:
tb - token builder reference