Db.set_flags

						import com.sleepycat.db.*;
						public void set_flags(int flags)
						throws DbException;
					

Description

Calling Db.set_flags is additive, there is no way to clear flags.

The flags value must be set to 0 or by bitwise inclusively OR’ing together one or more of the following values.

Btree

The following flags may be specified for the Btree access method:

  • Db.DB_DUP Permit duplicate data items in the tree; that is, insertion when the key of the key/data pair being inserted already exists in the tree will be successful. The ordering of duplicates in the tree is determined by the order of insertion, unless the ordering is otherwise specified by use of a cursor operation. It is an error to specify both Db.DB_DUP and Db.DB_RECNUM.

  • Db.DB_DUPSORT ...

Get Berkeley DB now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.