Package com.sleepycat.db
Class QueueStats
java.lang.Object
com.sleepycat.db.DatabaseStats
com.sleepycat.db.QueueStats
The QueueStats object is used to return Queue database statistics.
-
Method Summary
Modifier and TypeMethodDescriptionintThe next available record number.intThe underlying database extent size, in pages.intThe first undeleted record in the database.intgetMagic()The magic number that identifies the file as a Queue file.intReports internal flags.intThe number of records in the database.intThe number of records in the database.intgetPages()The number of pages in the database.intThe number of bytes free in database pages.intThe underlying database page size, in bytes.intgetReLen()The length of the records.intgetRePad()The padding byte value for the records.intThe version of the Queue database.toString()For convenience, the QueueStats 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 Queue file. -
getVersion
public int getVersion()The version of the Queue database. -
getMetaFlags
public int getMetaFlags()Reports internal flags. For internal use only. -
getNumKeys
public int getNumKeys()The number of records in the database.If the
Database.getStatscall was configured by theStatsConfig.setFastmethod, the count will be the last saved value unless it has never been calculated, in which case it will be 0. -
getNumData
public int getNumData()The number of records in the database.If the
Database.getStatscall was configured by theStatsConfig.setFastmethod, the count will be the last saved value unless it has never been calculated, in which case it will be 0. -
getPageSize
public int getPageSize()The underlying database page size, in bytes. -
getExtentSize
public int getExtentSize()The underlying database extent size, in pages. -
getPages
public int getPages()The number of pages in the database.The information is only included if the
Database.getStatscall was not configured by theStatsConfig.setFastmethod. -
getReLen
public int getReLen()The length of the records. -
getRePad
public int getRePad()The padding byte value for the records. -
getPagesFree
public int getPagesFree()The number of bytes free in database pages.The information is only included if the
Database.getStatscall was not configured by theStatsConfig.setFastmethod. -
getFirstRecno
public int getFirstRecno()The first undeleted record in the database. -
getCurRecno
public int getCurRecno()The next available record number. -
toString
For convenience, the QueueStats class has a toString method that lists all the data fields.
-