Berkeley DB Java Edition
version 1.5.1

com.sleepycat.je
Class DatabaseStats

java.lang.Object
  |
  +--com.sleepycat.je.DatabaseStats

public class DatabaseStats
extends Object

Statistics for a single database. A DatabaseStats object is returned from Database.getStats().

Note that the current database statistics are expensive to obtain because the entire database tree is traversed. These expensive statistics are only provided if Database.getStats() is called with a StatsConfig parameter that has been configured for "slow" stats.


Constructor Summary
DatabaseStats()
           
 
Method Summary
 int getBinCount()
          Return the number of leaf nodes in the database tree.
 int getDeletedLNCount()
          Return the number of key/data pairs in the database tree marked for deletion.
 int getDupCountLNCount()
          Return the number of duplicate key/data pairs in the database tree.
 int getInCount()
          Return the number of internal nodes in the database tree.
 int getLnCount()
          Return the number of key/data pairs in the database tree.
 int getMaxDepth()
          Return the maximum depth of the database tree.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseStats

public DatabaseStats()
Method Detail

getBinCount

public int getBinCount()
Return the number of leaf nodes in the database tree. Only provided if Database.getStats() is called in "slow" mode.


getDeletedLNCount

public int getDeletedLNCount()
Return the number of key/data pairs in the database tree marked for deletion. Only provided if Database.getStats() is called in "slow" mode.


getDupCountLNCount

public int getDupCountLNCount()
Return the number of duplicate key/data pairs in the database tree. Only provided if Database.getStats() is called in "slow" mode.


getInCount

public int getInCount()
Return the number of internal nodes in the database tree. Only provided if Database.getStats() is called in "slow" mode.


getLnCount

public int getLnCount()
Return the number of key/data pairs in the database tree. Only provided if Database.getStats() is called in "slow" mode.


getMaxDepth

public int getMaxDepth()
Return the maximum depth of the database tree. Only provided if Database.getStats() is called in "slow" mode.


Berkeley DB Java Edition
version 1.5.1

Copyright (c) 1996-2004 Sleepycat Software, Inc. - All rights reserved.