• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/db-4.7.25.NC/java/src/com/sleepycat/db/
1/*-
2 * See the file LICENSE for redistribution information.
3 *
4 * Copyright (c) 1997,2008 Oracle.  All rights reserved.
5 *
6 * $Id: KeyRange.java,v 12.8 2008/04/02 13:43:38 bschmeck Exp $
7 */
8package com.sleepycat.db;
9
10/**
11An object that returns status from the {@link com.sleepycat.db.Database#getKeyRange Database.getKeyRange} method.
12*/
13public class KeyRange {
14
15    /**
16    Zero if there is no matching key, and non-zero otherwise.
17    */
18    public double equal;
19
20    /**
21    A value between 0 and 1, the proportion of keys greater than the
22    specified key.
23    <p>
24    For example, if the value is 0.05, 5% of the keys in the database
25    are greater than the specified key.
26    */
27    public double greater;
28
29    /**
30    A value between 0 and 1, the proportion of keys less than the specified
31    key.
32    <p>
33    For example, if the value is 0.05, 5% of the keys in the database
34    are less than the specified key.
35    */
36    public double less;
37}
38