com.sleepycat.collections
public class StoredSortedValueSet extends StoredValueSet implements SortedSet
In addition to the standard SortedSet methods, this class provides the following methods for stored sorted value sets only. Note that the use of these methods is not compatible with the standard Java collections interface.
Constructor Summary | |
---|---|
StoredSortedValueSet(Database database, EntityBinding valueEntityBinding, boolean writeAllowed)
Creates a sorted value set entity view of a Database.
|
Method Summary | |
---|---|
Comparator | comparator()
Returns null since comparators are not supported. |
Object | first()
Returns the first (lowest) element currently in this sorted set.
|
SortedSet | headSet(Object toValue)
Returns a view of the portion of this sorted set whose elements are
strictly less than toValue.
|
SortedSet | headSet(Object toValue, boolean toInclusive)
Returns a view of the portion of this sorted set whose elements are
strictly less than toValue, optionally including toValue.
|
Object | last()
Returns the last (highest) element currently in this sorted set.
|
SortedSet | subSet(Object fromValue, Object toValue)
Returns a view of the portion of this sorted set whose elements range
from fromValue, inclusive, to toValue, exclusive.
|
SortedSet | subSet(Object fromValue, boolean fromInclusive, Object toValue, boolean toInclusive)
Returns a view of the portion of this sorted set whose elements are
strictly greater than fromValue and strictly less than toValue,
optionally including fromValue and toValue.
|
SortedSet | tailSet(Object fromValue)
Returns a view of the portion of this sorted set whose elements are
greater than or equal to fromValue.
|
SortedSet | tailSet(Object fromValue, boolean fromInclusive)
Returns a view of the portion of this sorted set whose elements are
strictly greater than fromValue, optionally including fromValue.
|
Parameters: database is the Database underlying the new collection. valueEntityBinding is the binding used to translate between key/value buffers and entity value objects. writeAllowed is true to create a read-write collection or false to create a read-only collection.
Throws: IllegalArgumentException if formats are not consistently defined or a parameter is invalid. RuntimeExceptionWrapper if a DatabaseException is thrown.
Returns: null.
Returns: the first element.
Throws: RuntimeExceptionWrapper if a DatabaseException is thrown.
Note that the return value is a StoredCollection and must be treated as such; for example, its iterators must be explicitly closed.
Parameters: toValue the upper bound.
Returns: the subset.
Throws: RuntimeExceptionWrapper if a DatabaseException is thrown.
Note that the return value is a StoredCollection and must be treated as such; for example, its iterators must be explicitly closed.
Parameters: toValue is the upper bound. toInclusive is true to include toValue.
Returns: the subset.
Throws: RuntimeExceptionWrapper if a DatabaseException is thrown.
Returns: the last element.
Throws: RuntimeExceptionWrapper if a DatabaseException is thrown.
Note that the return value is a StoredCollection and must be treated as such; for example, its iterators must be explicitly closed.
Parameters: fromValue is the lower bound. toValue is the upper bound.
Returns: the subset.
Throws: RuntimeExceptionWrapper if a DatabaseException is thrown.
Note that the return value is a StoredCollection and must be treated as such; for example, its iterators must be explicitly closed.
Parameters: fromValue is the lower bound. fromInclusive is true to include fromValue. toValue is the upper bound. toInclusive is true to include toValue.
Returns: the subset.
Throws: RuntimeExceptionWrapper if a DatabaseException is thrown.
Note that the return value is a StoredCollection and must be treated as such; for example, its iterators must be explicitly closed.
Parameters: fromValue is the lower bound.
Returns: the subset.
Throws: RuntimeExceptionWrapper if a DatabaseException is thrown.
Note that the return value is a StoredCollection and must be treated as such; for example, its iterators must be explicitly closed.
Parameters: fromValue is the lower bound. fromInclusive is true to include fromValue.
Returns: the subset.
Throws: RuntimeExceptionWrapper if a DatabaseException is thrown.