• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/db-4.8.30/java/src/com/sleepycat/db/
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