| java.lang.Object com.sleepycat.collections.StoredContainer com.sleepycat.collections.StoredMap com.sleepycat.collections.StoredSortedMap
StoredSortedMap | public class StoredSortedMap extends StoredMap implements SortedMap(Code) | | A SortedMap view of a
Database .
In addition to the standard SortedMap methods, this class provides the
following methods for stored sorted maps only. Note that the use of these
methods is not compatible with the standard Java collections interface.
author: Mark Hayes |
Constructor Summary | |
public | StoredSortedMap(Database database, EntryBinding keyBinding, EntryBinding valueBinding, boolean writeAllowed) Creates a sorted map view of a
Database . | public | StoredSortedMap(Database database, EntryBinding keyBinding, EntryBinding valueBinding, PrimaryKeyAssigner keyAssigner) Creates a sorted map view of a
Database with a
PrimaryKeyAssigner . | public | StoredSortedMap(Database database, EntryBinding keyBinding, EntityBinding valueEntityBinding, boolean writeAllowed) Creates a sorted map entity view of a
Database . | public | StoredSortedMap(Database database, EntryBinding keyBinding, EntityBinding valueEntityBinding, PrimaryKeyAssigner keyAssigner) Creates a sorted map entity view of a
Database with a
PrimaryKeyAssigner . | | StoredSortedMap(DataView mapView) |
Method Summary | |
public Comparator | comparator() Returns null since comparators are not supported. | public Object | firstKey() Returns the first (lowest) key currently in this sorted map. | public SortedMap | headMap(Object toKey) Returns a view of the portion of this sorted set whose keys are
strictly less than toKey.
This method conforms to the
SortedMap.headMap interface.
Note that the return value is a StoredStoredMap and must be treated
as such; for example, its iterators must be explicitly closed.
Parameters: toKey - is the upper bound. | public SortedMap | headMap(Object toKey, boolean toInclusive) Returns a view of the portion of this sorted map whose elements are
strictly less than toKey, optionally including toKey.
This method does not exist in the standard
SortedMap interface.
Note that the return value is a StoredStoredMap and must be treated
as such; for example, its iterators must be explicitly closed.
Parameters: toKey - is the upper bound. Parameters: toInclusive - is true to include toKey. | public Object | lastKey() Returns the last (highest) element currently in this sorted map. | public SortedMap | subMap(Object fromKey, Object toKey) Returns a view of the portion of this sorted map whose elements range
from fromKey, inclusive, to toKey, exclusive.
This method conforms to the
SortedMap.subMap interface.
Note that the return value is a StoredStoredMap and must be treated
as such; for example, its iterators must be explicitly closed.
Parameters: fromKey - is the lower bound. Parameters: toKey - is the upper bound. | public SortedMap | subMap(Object fromKey, boolean fromInclusive, Object toKey, boolean toInclusive) Returns a view of the portion of this sorted map whose elements are
strictly greater than fromKey and strictly less than toKey,
optionally including fromKey and toKey.
This method does not exist in the standard
SortedMap interface.
Note that the return value is a StoredStoredMap and must be treated
as such; for example, its iterators must be explicitly closed.
Parameters: fromKey - is the lower bound. Parameters: fromInclusive - is true to include fromKey. Parameters: toKey - is the upper bound. Parameters: toInclusive - is true to include toKey. | public SortedMap | tailMap(Object fromKey) Returns a view of the portion of this sorted map whose elements are
greater than or equal to fromKey.
This method conforms to the
SortedMap.tailMap interface.
Note that the return value is a StoredStoredMap and must be treated
as such; for example, its iterators must be explicitly closed.
Parameters: fromKey - is the lower bound. | public SortedMap | tailMap(Object fromKey, boolean fromInclusive) Returns a view of the portion of this sorted map whose elements are
strictly greater than fromKey, optionally including fromKey.
This method does not exist in the standard
SortedMap interface.
Note that the return value is a StoredStoredMap and must be treated
as such; for example, its iterators must be explicitly closed.
Parameters: fromKey - is the lower bound. Parameters: fromInclusive - is true to include fromKey. |
StoredSortedMap | public StoredSortedMap(Database database, EntryBinding keyBinding, EntryBinding valueBinding, boolean writeAllowed)(Code) | | Creates a sorted map view of a
Database .
Parameters: database - is the Database underlying the new collection. Parameters: keyBinding - is the binding used to translate between key buffersand key objects. Parameters: valueBinding - is the binding used to translate between valuebuffers and value objects. Parameters: writeAllowed - is true to create a read-write collection or falseto create a read-only collection. throws: IllegalArgumentException - if formats are not consistentlydefined or a parameter is invalid. throws: RuntimeExceptionWrapper - if a com.sleepycat.je.DatabaseException is thrown. |
StoredSortedMap | public StoredSortedMap(Database database, EntryBinding keyBinding, EntityBinding valueEntityBinding, boolean writeAllowed)(Code) | | Creates a sorted map entity view of a
Database .
Parameters: database - is the Database underlying the new collection. Parameters: keyBinding - is the binding used to translate between key buffersand key objects. Parameters: valueEntityBinding - is the binding used to translate betweenkey/value buffers and entity value objects. Parameters: writeAllowed - is true to create a read-write collection or falseto create a read-only collection. throws: IllegalArgumentException - if formats are not consistentlydefined or a parameter is invalid. throws: RuntimeExceptionWrapper - if a com.sleepycat.je.DatabaseException is thrown. |
StoredSortedMap | public StoredSortedMap(Database database, EntryBinding keyBinding, EntityBinding valueEntityBinding, PrimaryKeyAssigner keyAssigner)(Code) | | Creates a sorted map entity view of a
Database with a
PrimaryKeyAssigner . Writing is allowed for the created map.
Parameters: database - is the Database underlying the new collection. Parameters: keyBinding - is the binding used to translate between key buffersand key objects. Parameters: valueEntityBinding - is the binding used to translate betweenkey/value buffers and entity value objects. Parameters: keyAssigner - is used by the StoredSortedMap.append method to assignprimary keys. throws: IllegalArgumentException - if formats are not consistentlydefined or a parameter is invalid. throws: RuntimeExceptionWrapper - if a com.sleepycat.je.DatabaseException is thrown. |
comparator | public Comparator comparator()(Code) | | Returns null since comparators are not supported. The natural ordering
of a stored collection is data byte order, whether the data classes
implement the
java.lang.Comparable interface or not.
This method does not conform to the
SortedMap.comparator interface.
null. |
headMap | public SortedMap headMap(Object toKey)(Code) | | Returns a view of the portion of this sorted set whose keys are
strictly less than toKey.
This method conforms to the
SortedMap.headMap interface.
Note that the return value is a StoredStoredMap and must be treated
as such; for example, its iterators must be explicitly closed.
Parameters: toKey - is the upper bound. the submap. throws: RuntimeExceptionWrapper - if a com.sleepycat.je.DatabaseException is thrown. |
headMap | public SortedMap headMap(Object toKey, boolean toInclusive)(Code) | | Returns a view of the portion of this sorted map whose elements are
strictly less than toKey, optionally including toKey.
This method does not exist in the standard
SortedMap interface.
Note that the return value is a StoredStoredMap and must be treated
as such; for example, its iterators must be explicitly closed.
Parameters: toKey - is the upper bound. Parameters: toInclusive - is true to include toKey. the submap. throws: RuntimeExceptionWrapper - if a com.sleepycat.je.DatabaseException is thrown. |
subMap | public SortedMap subMap(Object fromKey, Object toKey)(Code) | | Returns a view of the portion of this sorted map whose elements range
from fromKey, inclusive, to toKey, exclusive.
This method conforms to the
SortedMap.subMap interface.
Note that the return value is a StoredStoredMap and must be treated
as such; for example, its iterators must be explicitly closed.
Parameters: fromKey - is the lower bound. Parameters: toKey - is the upper bound. the submap. throws: RuntimeExceptionWrapper - if a com.sleepycat.je.DatabaseException is thrown. |
subMap | public SortedMap subMap(Object fromKey, boolean fromInclusive, Object toKey, boolean toInclusive)(Code) | | Returns a view of the portion of this sorted map whose elements are
strictly greater than fromKey and strictly less than toKey,
optionally including fromKey and toKey.
This method does not exist in the standard
SortedMap interface.
Note that the return value is a StoredStoredMap and must be treated
as such; for example, its iterators must be explicitly closed.
Parameters: fromKey - is the lower bound. Parameters: fromInclusive - is true to include fromKey. Parameters: toKey - is the upper bound. Parameters: toInclusive - is true to include toKey. the submap. throws: RuntimeExceptionWrapper - if a com.sleepycat.je.DatabaseException is thrown. |
tailMap | public SortedMap tailMap(Object fromKey)(Code) | | Returns a view of the portion of this sorted map whose elements are
greater than or equal to fromKey.
This method conforms to the
SortedMap.tailMap interface.
Note that the return value is a StoredStoredMap and must be treated
as such; for example, its iterators must be explicitly closed.
Parameters: fromKey - is the lower bound. the submap. throws: RuntimeExceptionWrapper - if a com.sleepycat.je.DatabaseException is thrown. |
tailMap | public SortedMap tailMap(Object fromKey, boolean fromInclusive)(Code) | | Returns a view of the portion of this sorted map whose elements are
strictly greater than fromKey, optionally including fromKey.
This method does not exist in the standard
SortedMap interface.
Note that the return value is a StoredStoredMap and must be treated
as such; for example, its iterators must be explicitly closed.
Parameters: fromKey - is the lower bound. Parameters: fromInclusive - is true to include fromKey. the submap. throws: RuntimeExceptionWrapper - if a com.sleepycat.je.DatabaseException is thrown. |
|
|