com.sleepycat.je
Class BtreeStats

java.lang.Object
  extended by com.sleepycat.je.DatabaseStats
      extended by com.sleepycat.je.BtreeStats
All Implemented Interfaces:
java.io.Serializable

public class BtreeStats
extends DatabaseStats

The BtreeStats object is used to return Btree database statistics.

See Also:
Serialized Form

Constructor Summary
BtreeStats()
           
 
Method Summary
 long[] getBINsByLevel()
          Returns the count of Bottom Internal Nodes per level, indexed by level.
 long getBottomInternalNodeCount()
          Returns the number of Bottom Internal Nodes in the database tree.
 long[] getDBINsByLevel()
          Returns the count of Duplicate Bottom Internal Nodes per level, indexed by level.
 long getDeletedLeafNodeCount()
          Returns the number of deleted data records in the database tree that are pending removal by the compressor.
 long[] getDINsByLevel()
          Returns the count of Duplicate Internal Nodes per level, indexed by level.
 long getDupCountLeafNodeCount()
          Returns the number of duplicate count leaf nodes in the database tree.
 long getDuplicateBottomInternalNodeCount()
          Returns the number of Duplicate Bottom Internal Nodes in the database tree.
 long getDuplicateInternalNodeCount()
          Returns the number of Duplicate Internal Nodes in the database tree.
 int getDuplicateTreeMaxDepth()
          Returns the maximum depth of the duplicate database trees.
 long[] getINsByLevel()
          Returns the count of Internal Nodes per level, indexed by level.
 long getInternalNodeCount()
          Returns the number of Internal Nodes in the database tree.
 long getLeafNodeCount()
          Returns the number of leaf nodes in the database tree, which can equal the number of records.
 int getMainTreeMaxDepth()
          Returns the maximum depth of the main database tree.
 void setBINsByLevel(long[] binsByLevel)
           
 void setBottomInternalNodeCount(long val)
           
 void setDBINsByLevel(long[] dbinsByLevel)
           
 void setDeletedLeafNodeCount(long val)
           
 void setDINsByLevel(long[] dinsByLevel)
           
 void setDupCountLeafNodeCount(long val)
           
 void setDuplicateBottomInternalNodeCount(long val)
           
 void setDuplicateInternalNodeCount(long val)
           
 void setDuplicateTreeMaxDepth(int val)
           
 void setINsByLevel(long[] insByLevel)
           
 void setInternalNodeCount(long val)
           
 void setLeafNodeCount(long val)
           
 void setMainTreeMaxDepth(int val)
           
 java.lang.String toString()
          For convenience, the BtreeStats class has a toString method that lists all the data fields.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BtreeStats

public BtreeStats()
Method Detail

getBottomInternalNodeCount

public long getBottomInternalNodeCount()
Returns the number of Bottom Internal Nodes in the database tree.

The information is included only if the Database.getStats call was not configured by the StatsConfig.setFast method.

Returns:
number of Bottom Internal Nodes in the database tree.

setBottomInternalNodeCount

public void setBottomInternalNodeCount(long val)

getDuplicateBottomInternalNodeCount

public long getDuplicateBottomInternalNodeCount()
Returns the number of Duplicate Bottom Internal Nodes in the database tree.

The information is included only if the Database.getStats call was not configured by the StatsConfig.setFast method.

Returns:
number of Duplicate Bottom Internal Nodes in the database tree.

setDuplicateBottomInternalNodeCount

public void setDuplicateBottomInternalNodeCount(long val)

getDeletedLeafNodeCount

public long getDeletedLeafNodeCount()
Returns the number of deleted data records in the database tree that are pending removal by the compressor.

The information is included only if the Database.getStats call was not configured by the StatsConfig.setFast method.

Returns:
number of deleted data records in the database tree that are pending removal by the compressor.

setDeletedLeafNodeCount

public void setDeletedLeafNodeCount(long val)

getDupCountLeafNodeCount

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

The information is included only if the Database.getStats call was not configured by the StatsConfig.setFast method.

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

setDupCountLeafNodeCount

public void setDupCountLeafNodeCount(long val)

getInternalNodeCount

public long getInternalNodeCount()
Returns the number of Internal Nodes in the database tree.

The information is included only if the Database.getStats call was not configured by the StatsConfig.setFast method.

Returns:
number of Internal Nodes in the database tree.

setInternalNodeCount

public void setInternalNodeCount(long val)

getDuplicateInternalNodeCount

public long getDuplicateInternalNodeCount()
Returns the number of Duplicate Internal Nodes in the database tree.

The information is included only if the Database.getStats call was not configured by the StatsConfig.setFast method.

Returns:
number of Duplicate Internal Nodes in the database tree.

setDuplicateInternalNodeCount

public void setDuplicateInternalNodeCount(long val)

getLeafNodeCount

public long getLeafNodeCount()
Returns the number of leaf nodes in the database tree, which can equal the number of records. This is calculated without locks or transactions, and therefore is only an accurate count of the current number of records when the database is quiescent.

The information is included only if the Database.getStats call was not configured by the StatsConfig.setFast method.

Returns:
number of leaf nodes in the database tree, which can equal the number of records. This is calculated without locks or transactions, and therefore is only an accurate count of the current number of records when the database is quiescent.

setLeafNodeCount

public void setLeafNodeCount(long val)

getMainTreeMaxDepth

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

The information is included only if the Database.getStats call was not configured by the StatsConfig.setFast method.

Returns:
maximum depth of the main database tree.

setMainTreeMaxDepth

public void setMainTreeMaxDepth(int val)

getDuplicateTreeMaxDepth

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

The information is included only if the Database.getStats call was not configured by the StatsConfig.setFast method.

Returns:
maximum depth of the duplicate database trees.

setDuplicateTreeMaxDepth

public void setDuplicateTreeMaxDepth(int val)

getINsByLevel

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

The information is included only if the Database.getStats call was not configured by the StatsConfig.setFast method.

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

setINsByLevel

public void setINsByLevel(long[] insByLevel)

getBINsByLevel

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

The information is included only if the Database.getStats call was not configured by the StatsConfig.setFast method.

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

setBINsByLevel

public void setBINsByLevel(long[] binsByLevel)

getDINsByLevel

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

The information is included only if the Database.getStats call was not configured by the StatsConfig.setFast method.

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

setDINsByLevel

public void setDINsByLevel(long[] dinsByLevel)

getDBINsByLevel

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

The information is included only if the Database.getStats call was not configured by the StatsConfig.setFast method.

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

setDBINsByLevel

public void setDBINsByLevel(long[] dbinsByLevel)

toString

public java.lang.String toString()
For convenience, the BtreeStats class has a toString method that lists all the data fields.

Overrides:
toString in class java.lang.Object