Class BtreeStats
-
Method Summary
Modifier and TypeMethodDescriptionintThe number of database duplicate pages.longThe number of bytes free in database duplicate pages.intThe number of empty database pages.intgetFree()The number of pages on the free list.intThe number of database internal pages.longThe number of bytes free in database internal pages.intThe number of database leaf pages.longThe number of bytes free in database leaf pages.intThe number of levels in the database.intgetMagic()The magic number that identifies the file as a Btree database.intReports internal flags.intThe minimum keys per page.intThe number of key/data pairs or records in the database.intThe number of keys or records in the database.intThe number of database overflow pages.longThe number of bytes free in database overflow pages.intThe number of pages in the database.intThe underlying database page size, in bytes.intgetReLen()The length of fixed-length records.intgetRePad()The padding byte value for fixed-length records.intThe version of the Btree database.toString()For convenience, the BtreeStats class has a toString method that lists all the data fields.
-
Method Details
-
getMagic
public int getMagic()The magic number that identifies the file as a Btree database. -
getVersion
public int getVersion()The version of the Btree database. -
getMetaFlags
public int getMetaFlags()Reports internal flags. For internal use only. -
getNumKeys
public int getNumKeys()The number of keys or records in the database.For the Btree Access Method, the number of keys in the database. If the
Database.getStatscall was not configured by theStatsConfig.setFastmethod 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.getStatscall was configured by theStatsConfig.setFastmethod, the count will be exact but will include deleted records; if theDatabase.getStatscall was not configured by theStatsConfig.setFastmethod, the count will be exact and will not include deleted records. -
getNumData
public int getNumData()The number of key/data pairs or records in the database.For the Btree Access Method, the number of key/data pairs in the database. If the
Database.getStatscall was not configured by theStatsConfig.setFastmethod, 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.getStatscall was configured by theStatsConfig.setFastmethod, the count will be exact but will include deleted records; if theDatabase.getStatscall was not configured by theStatsConfig.setFastmethod, the count will be exact and will not include deleted records. -
getPageCount
public int getPageCount()The number of pages in the database.Returned if
StatsConfig.setFast(boolean)was configured. -
getPageSize
public int getPageSize()The underlying database page size, in bytes. -
getMinKey
public int getMinKey()The minimum keys per page. -
getReLen
public int getReLen()The length of fixed-length records. -
getRePad
public int getRePad()The padding byte value for fixed-length records. -
getLevels
public int getLevels()The number of levels in the database.The information is only included if the
Database.getStatscall was not configured by theStatsConfig.setFastmethod. -
getIntPages
public int getIntPages()The number of database internal pages.The information is only included if the
Database.getStatscall was not configured by theStatsConfig.setFastmethod. -
getLeafPages
public int getLeafPages()The number of database leaf pages.The information is only included if the
Database.getStatscall was not configured by theStatsConfig.setFastmethod. -
getDupPages
public int getDupPages()The number of database duplicate pages.The information is only included if the
Database.getStatscall was not configured by theStatsConfig.setFastmethod. -
getOverPages
public int getOverPages()The number of database overflow pages.The information is only included if the
Database.getStatscall was not configured by theStatsConfig.setFastmethod. -
getEmptyPages
public int getEmptyPages()The number of empty database pages.The information is only included if the
Database.getStatscall was not configured by theStatsConfig.setFastmethod. -
getFree
public int getFree()The number of pages on the free list.The information is only included if the
Database.getStatscall was not configured by theStatsConfig.setFastmethod. -
getIntPagesFree
public long getIntPagesFree()The number of bytes free in database internal pages.The information is only included if the
Database.getStatscall was not configured by theStatsConfig.setFastmethod. -
getLeafPagesFree
public long getLeafPagesFree()The number of bytes free in database leaf pages.The information is only included if the
Database.getStatscall was not configured by theStatsConfig.setFastmethod. -
getDupPagesFree
public long getDupPagesFree()The number of bytes free in database duplicate pages.The information is only included if the
Database.getStatscall was not configured by theStatsConfig.setFastmethod. -
getOverPagesFree
public long getOverPagesFree()The number of bytes free in database overflow pages.The information is only included if the
Database.getStatscall was not configured by theStatsConfig.setFastmethod. -
toString
For convenience, the BtreeStats class has a toString method that lists all the data fields.
-