Dbc.get

						import com.sleepycat.db.*;
						public int get(Dbt key, Dbt data, int flags)
						throws DbException;
					

Description

The Dbc.get method retrieves key/data pairs from the database. The byte array and length of the key are returned in the object referenced by key (except for the case of the Db.DB_SET flag, where the key object is unchanged), and the byte array and length of the data are returned in the object referenced by data.

Modifications to the database during a sequential scan will be reflected in the scan; that is, records inserted behind a cursor will not be returned, whereas records inserted in front of a cursor will be returned.

In Queue and Recno databases, missing entries (that is, entries that were never explicitly created or that were ...

Get Berkeley DB now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.