1 /*-
2  * See the file LICENSE for redistribution information.
3  *
4  * Copyright (c) 2001, 2013 Oracle and/or its affiliates.  All rights reserved.
5  *
6  * $Id$
7  */
8 
9 package com.sleepycat.db;
10 
11 /**
12 An interface specifying how Btree prefixes should be calculated.
13 */
14 public 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     */
partition(Database db, DatabaseEntry key)23     int partition(Database db, DatabaseEntry key);
24 }
25