Berkeley DB: DbInfo

ee,hash,hashing,transaction,transactions,locking,logging,access method,access me thods,java,C,C++">


import com.sleepycat.db.*;

public DbInfo(); public DbInfo(DbInfo that);


This manual page describes the DbInfo class. A DbInfo object is used in conjunction with the method to specify particular configuration options for the open. The DbInfo class provides simple access to an underlying data structure, whose elements can be examined or changed using the set_ or get_ methods.

The default constructor sets all elements of the underlying structure to zero. Some of the fields are specific to a type of file format (one of btree, hashed and recno) and are thus named with an underscore separated string, bt, h and re, respectively. For example, the DbInfo.set_bt_minkey method sets the underlying bt_minkey field, and this field is only used when opening a btree file.

If possible, defaults appropriate for the system are used for the DbInfo fields if no dbinfo parameter is provided or if any fields of the DbInfo object are not explicitly set.



See Also

DbInfo.set_bt_compare, DbInfo.set_bt_maxkey, DbInfo.set_bt_minkey, DbInfo.set_bt_prefix, DbInfo.set_cachesize, DbInfo.set_compare, DbInfo.set_flags, DbInfo.set_h_ffactor, DbInfo.set_h_hash, DbInfo.set_h_nelem, DbInfo.set_lorder, DbInfo.set_malloc, DbInfo.set_pagesize, DbInfo.set_re_delim, DbInfo.set_re_len, DbInfo.set_re_pad and DbInfo.set_re_source.