Berkeley DB Java Edition
version 1.5.3

com.sleepycat.je
Class BtreeStats

java.lang.Object
  extended bycom.sleepycat.je.DatabaseStats
      extended bycom.sleepycat.je.BtreeStats

public class BtreeStats
extends DatabaseStats

The BtreeStats object is used to return Btree database statistics.


Constructor Summary
BtreeStats()
           
 
Method Summary
 long[] getBINsByLevel()
          Return the count of Bottom Internal Nodes per level, indexed by level.
 long getBottomInternalNodeCount()
          Return the number of bottom internal nodes in the database tree.
 long[] getDBINsByLevel()
          Return the count of Duplicate Bottom Internal Nodes per level, indexed by level.
 long getDeletedLeafNodeCount()
          Return the number of key/data pairs in the database tree marked for deletion.
 long[] getDINsByLevel()
          Return the count of Duplicate Internal Nodes per level, indexed by level.
 long getDupCountLeafNodeCount()
          Return the number of duplicate count leaf nodes in the database tree.
 long getDuplicateBottomInternalNodeCount()
          Return the number of duplicate bottom internal nodes in the database tree.
 long getDuplicateInternalNodeCount()
          Return the number of duplicate internal nodes in the database tree.
 int getDuplicateTreeMaxDepth()
          Return the maximum depth of the duplicate database trees.
 long[] getINsByLevel()
          Return the count of Internal Nodes per level, indexed by level.
 long getInternalNodeCount()
          Return the number of internal nodes in the database tree.
 long getLeafNodeCount()
          Return the number of leaf nodes in the database tree.
 int getMainTreeMaxDepth()
          Return the maximum depth of the main database tree.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BtreeStats

public BtreeStats()
Method Detail

getBottomInternalNodeCount

public long getBottomInternalNodeCount()
Return the number of bottom internal nodes in the database tree.

The information is only included if the Database.getStats(com.sleepycat.je.StatsConfig) call was not configured by the StatsConfig.setFast(boolean) method.

Returns:
number of bottom internal nodes in the database tree.

getDuplicateBottomInternalNodeCount

public long getDuplicateBottomInternalNodeCount()
Return the number of duplicate bottom internal nodes in the database tree.

The information is only included if the Database.getStats(com.sleepycat.je.StatsConfig) call was not configured by the StatsConfig.setFast(boolean) method.

Returns:
number of duplicate bottom internal nodes in the database tree.

getDeletedLeafNodeCount

public long getDeletedLeafNodeCount()
Return the number of key/data pairs in the database tree marked for deletion.

The information is only included if the Database.getStats(com.sleepycat.je.StatsConfig) call was not configured by the StatsConfig.setFast(boolean) method.

Returns:
number of key/data pairs in the database tree marked for deletion.

getDupCountLeafNodeCount

public long getDupCountLeafNodeCount()
Return the number of duplicate count leaf nodes in the database tree.

The information is only included if the Database.getStats(com.sleepycat.je.StatsConfig) call was not configured by the StatsConfig.setFast(boolean) method.

Returns:
number of duplicate count leaf nodes in the database tree.

getInternalNodeCount

public long getInternalNodeCount()
Return the number of internal nodes in the database tree.

The information is only included if the Database.getStats(com.sleepycat.je.StatsConfig) call was not configured by the StatsConfig.setFast(boolean) method.

Returns:
number of internal nodes in the database tree.

getDuplicateInternalNodeCount

public long getDuplicateInternalNodeCount()
Return the number of duplicate internal nodes in the database tree.

The information is only included if the Database.getStats(com.sleepycat.je.StatsConfig) call was not configured by the StatsConfig.setFast(boolean) method.

Returns:
number of duplicate internal nodes in the database tree.

getLeafNodeCount

public long getLeafNodeCount()
Return the number of leaf nodes in the database tree. This may include both current and deleted key/data pairs and therefore is not an accurate count of the current number of records.

The information is only included if the Database.getStats(com.sleepycat.je.StatsConfig) call was not configured by the StatsConfig.setFast(boolean) method.

Returns:
number of leaf nodes in the database tree. This may include both current and deleted key/data pairs and therefore is not an accurate count of the current number of records.

getMainTreeMaxDepth

public int getMainTreeMaxDepth()
Return the maximum depth of the main database tree.

The information is only included if the Database.getStats(com.sleepycat.je.StatsConfig) call was not configured by the StatsConfig.setFast(boolean) method.

Returns:
maximum depth of the main database tree.

getDuplicateTreeMaxDepth

public int getDuplicateTreeMaxDepth()
Return the maximum depth of the duplicate database trees.

The information is only included if the Database.getStats(com.sleepycat.je.StatsConfig) call was not configured by the StatsConfig.setFast(boolean) method.

Returns:
maximum depth of the duplicate database trees.

getINsByLevel

public long[] getINsByLevel()
Return the count of Internal Nodes per level, indexed by level.

The information is only included if the Database.getStats(com.sleepycat.je.StatsConfig) call was not configured by the StatsConfig.setFast(boolean) method.

Returns:
count of Internal Nodes per level, indexed by level.

getBINsByLevel

public long[] getBINsByLevel()
Return the count of Bottom Internal Nodes per level, indexed by level.

The information is only included if the Database.getStats(com.sleepycat.je.StatsConfig) call was not configured by the StatsConfig.setFast(boolean) method.

Returns:
count of Bottom Internal Nodes per level, indexed by level.

getDINsByLevel

public long[] getDINsByLevel()
Return the count of Duplicate Internal Nodes per level, indexed by level.

The information is only included if the Database.getStats(com.sleepycat.je.StatsConfig) call was not configured by the StatsConfig.setFast(boolean) method.

Returns:
count of Duplicate Internal Nodes per level, indexed by level.

getDBINsByLevel

public long[] getDBINsByLevel()
Return the count of Duplicate Bottom Internal Nodes per level, indexed by level.

The information is only included if the Database.getStats(com.sleepycat.je.StatsConfig) call was not configured by the StatsConfig.setFast(boolean) method.

Returns:
count of Duplicate Bottom Internal Nodes per level, indexed by level.

Berkeley DB Java Edition
version 1.5.3

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