class BDB::Queue
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
Public Instance Methods
Push the values
# File comxxx.rb, line 99 def push values end
Removes and returns an association from the database.
# File comxxx.rb, line 104 def shift end
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.
# File comxxx.rb, line 120 def stat(flags = 0) end