1/*- 2 * See the file LICENSE for redistribution information. 3 * 4 * Copyright (c) 2001,2008 Oracle. All rights reserved. 5 * 6 * $Id: BtreePrefixCalculator.java,v 12.7 2008/01/17 05:04:53 mjc Exp $ 7 */ 8 9package com.sleepycat.db; 10 11/** 12An interface specifying how Btree prefixes should be calculated. 13*/ 14public interface BtreePrefixCalculator { 15 /** 16 The application-specific Btree prefix callback. 17 <p> 18 @param db 19 The enclosing database handle. 20 @param dbt1 21 A database entry representing a database key. 22 @param dbt2 23 A database entry representing a database key. 24 */ 25 int prefix(Database db, DatabaseEntry dbt1, DatabaseEntry dbt2); 26} 27