BDB::Queue (Class)

In: comxxx.rb
Parent: Object

Stores fixed-length records with logical record numbers as keys. It is designed for fast inserts at the tail and has a special cursor consume operation that deletes and returns a record from the head of the queue

Inherit from BDB::Common

Methods

push   shift   stat  

Public Instance methods

Push the values

Removes and returns an association from the database.

Return an Hash with the fields (description for 4.0.14)

  • qs_magic : Magic number that identifies the file as a Queue file.
  • qs_version : The version of the Queue file type.
  • qs_nkeys : The number of records in the database.
  • qs_ndata : The number of records in the database.
  • qs_pagesize : Underlying database page size, in bytes.
  • qs_extentsize : Underlying database extent size, in pages.
  • qs_pages : Number of pages in the database.
  • qs_re_len : The length of the records.
  • qs_re_pad : The padding byte value for the records.
  • qs_pgfree : Number of bytes free in database pages.
  • qs_first_recno : First undeleted record in the database.
  • qs_cur_recno : Last allocated record number in the database.

[Validate]