June 2001
Intermediate to advanced
688 pages
19h 18m
English
import com.sleepycat.db.*; public Dbc join(Dbc curslist[], int flags) throws DbException;
The Db.join method creates a specialized cursor for use in performing joins on secondary indexes. For information on how to organize your data to use this functionality, see “Logical Join.”
The primary argument contains the Db handle of the primary database, which is keyed by the data values found in entries in the curslist.
The curslist argument contains a null- terminated array of cursors. Each cursor must have been initialized to reference the key on which the underlying database should be joined. Typically, this initialization is done by a Dbc.get call with the DB_SET flag specified. Once the cursors have been passed as part of ...