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