KeyRange (Sleepycat Software, Inc. - Berkeley DB Java API)
Keywords: com.sleepycat.db.KeyRange class

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Berkeley DB version 4.3.29
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.sleepycat.db
Class KeyRange

    java.lang.Object
      com.sleepycat.db.KeyRange

public class KeyRange
extends Object

An object that returns status from the `Database.getKeyRange` method.

Field Summary
`double` | `equal` Zero if there is no matching key, and non-zero otherwise.
`double` | `greater` A value between 0 and 1, the proportion of keys greater than the specified key.
`double` | `less` A value between 0 and 1, the proportion of keys less than the specified key.

Constructor Summary
`KeyRange()`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### equal

    public double equal

  Zero if there is no matching key, and non-zero otherwise.

### greater

    public double greater

  A value between 0 and 1, the proportion of keys greater than the specified key.

  For example, if the value is 0.05, 5% of the keys in the database are greater than the specified key.

### less

    public double less

  A value between 0 and 1, the proportion of keys less than the specified key.

  For example, if the value is 0.05, 5% of the keys in the database are less than the specified key.

Constructor Detail

### KeyRange

    public KeyRange()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Berkeley DB version 4.3.29
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright (c) 1996-2004 Sleepycat Software, Inc. - All rights reserved.