|
Berkeley DB version 5.2.28 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sleepycat.db.DatabaseStats com.sleepycat.db.BtreeStats
public class BtreeStats
The BtreeStats object is used to return Btree or Recno database statistics.
Method Summary | |
---|---|
int |
getDupPages()
The number of database duplicate pages. |
long |
getDupPagesFree()
The number of bytes free in database duplicate pages. |
int |
getEmptyPages()
The number of empty database pages. |
int |
getFree()
The number of pages on the free list. |
int |
getIntPages()
The number of database internal pages. |
long |
getIntPagesFree()
The number of bytes free in database internal pages. |
int |
getLeafPages()
The number of database leaf pages. |
long |
getLeafPagesFree()
The number of bytes free in database leaf pages. |
int |
getLevels()
The number of levels in the database. |
int |
getMagic()
The magic number that identifies the file as a Btree database. |
int |
getMetaFlags()
Reports internal flags. |
int |
getMinKey()
The minimum keys per page. |
int |
getNumData()
The number of key/data pairs or records in the database. |
int |
getNumKeys()
The number of keys or records in the database. |
int |
getOverPages()
The number of database overflow pages. |
long |
getOverPagesFree()
The number of bytes free in database overflow pages. |
int |
getPageCount()
The number of pages in the database. |
int |
getPageSize()
The underlying database page size, in bytes. |
int |
getReLen()
The length of fixed-length records. |
int |
getRePad()
The padding byte value for fixed-length records. |
int |
getVersion()
The version of the Btree database. |
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 |
Method Detail |
---|
public int getMagic()
public int getVersion()
public int getMetaFlags()
public int getNumKeys()
For the Btree Access Method, the number of keys in the database. If
the Database.getStats
call was not configured by the
StatsConfig.setFast
method or the database was configured
to support retrieval by record number, the count will be exact.
Otherwise, the count will be the last saved value unless it has
never been calculated, in which case it will be 0.
For the Recno Access Method, the number of records in the database.
If the database was configured with mutable record numbers the count
will be exact. Otherwise, if the Database.getStats
call
was configured by the StatsConfig.setFast
method, the
count will be exact but will include deleted records; if the
Database.getStats
call was not configured by the
StatsConfig.setFast
method, the count will be exact and
will not include deleted records.
public int getNumData()
For the Btree Access Method, the number of key/data pairs in the
database. If the Database.getStats
call was not
configured by the StatsConfig.setFast
method, the count
will be exact. Otherwise, the count will be the last saved value
unless it has never been calculated, in which case it will be 0.
For the Recno Access Method, the number of records in the database.
If the database was configured with mutable record numbers, the
count will be exact. Otherwise, if the Database.getStats
call was configured by the StatsConfig.setFast
method, the
count will be exact but will include deleted records; if the
Database.getStats
call was not configured by the
StatsConfig.setFast
method, the count will be exact and
will not include deleted records.
public int getPageCount()
Returned if StatsConfig.setFast(boolean)
was configured.
public int getPageSize()
public int getMinKey()
public int getReLen()
public int getRePad()
public int getLevels()
The information is only included if the Database.getStats
call
was not configured by the StatsConfig.setFast
method.
public int getIntPages()
The information is only included if the Database.getStats
call
was not configured by the StatsConfig.setFast
method.
public int getLeafPages()
The information is only included if the Database.getStats
call
was not configured by the StatsConfig.setFast
method.
public int getDupPages()
The information is only included if the Database.getStats
call
was not configured by the StatsConfig.setFast
method.
public int getOverPages()
The information is only included if the Database.getStats
call
was not configured by the StatsConfig.setFast
method.
public int getEmptyPages()
The information is only included if the Database.getStats
call
was not configured by the StatsConfig.setFast
method.
public int getFree()
The information is only included if the Database.getStats
call
was not configured by the StatsConfig.setFast
method.
public long getIntPagesFree()
The information is only included if the Database.getStats
call
was not configured by the StatsConfig.setFast
method.
public long getLeafPagesFree()
The information is only included if the Database.getStats
call
was not configured by the StatsConfig.setFast
method.
public long getDupPagesFree()
The information is only included if the Database.getStats
call
was not configured by the StatsConfig.setFast
method.
public long getOverPagesFree()
The information is only included if the Database.getStats
call
was not configured by the StatsConfig.setFast
method.
public String toString()
toString
in class Object
|
Berkeley DB version 5.2.28 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |