Class QueueStats


public class QueueStats extends DatabaseStats
The QueueStats object is used to return Queue database statistics.
  • 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.getStats call was configured by the StatsConfig.setFast method, 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.getStats call was configured by the StatsConfig.setFast method, 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.getStats call was not configured by the StatsConfig.setFast method.

    • 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.getStats call was not configured by the StatsConfig.setFast method.

    • getFirstRecno

      public int getFirstRecno()
      The first undeleted record in the database.
    • getCurRecno

      public int getCurRecno()
      The next available record number.
    • toString

      public String toString()
      For convenience, the QueueStats class has a toString method that lists all the data fields.
      Overrides:
      toString in class Object