Class: BDB::Queue

### Home Classes Methods

### In Files

- comxxx.rb

### Parent

BDB::Common

### Methods

- #push
- #shift
- #stat

### Class/Module Index

Quicksearch

- BDB
- BDB::Btree
- BDB::Common
- BDB::Cursor
- BDB::Env
- BDB::Hash
- BDB::Lock
- BDB::LockDead
- BDB::LockError
- BDB::LockGranted
- BDB::LockHeld
- BDB::Lockid
- BDB::Lsn
- BDB::Queue
- BDB::Recno
- BDB::Recnum
- BDB::Sequence
- BDB::Txn

No matching classes.

# 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(values) click to toggle source

Push the values

    # File comxxx.rb, line 99
    def  push values
    end

shift() click to toggle source

Removes and returns an association from the database.

    # File comxxx.rb, line 104
    def  shift
    end

stat(flags = 0) click to toggle source

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.