|
Berkeley DB version 4.2.52 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface specifying a comparison function, which imposes a total ordering on the keys in a Btree database.
Method Summary | |
int |
compare(Db db,
Dbt dbt1,
Dbt dbt2)
The DbBtreeCompare interface is used by the Db.setBtreeCompare method. |
Method Detail |
public int compare(Db db, Dbt dbt1, Dbt dbt2)
db
- the enclosing database handle.dbt1
- the Dbt
representing the application supplied key.dbt2
- the Dbt
representing the current tree's key.
Db.setBtreePrefix
for more information), the comparison routine may be passed a prefix of any database key. The data and size fields of the Dbt
are the only fields that may be used for the purposes of this comparison, and no particular alignment of the memory to which by the data field refers may be assumed.
|
Berkeley DB version 4.2.52 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |