Inheritance diagram for com::sleepycat::collections::StoredSortedMap:
Public Member Functions | |
StoredSortedMap (Database database, EntryBinding keyBinding, EntryBinding valueBinding, boolean writeAllowed) | |
StoredSortedMap (Database database, EntryBinding keyBinding, EntryBinding valueBinding, PrimaryKeyAssigner keyAssigner) | |
StoredSortedMap (Database database, EntryBinding keyBinding, EntityBinding valueEntityBinding, boolean writeAllowed) | |
StoredSortedMap (Database database, EntryBinding keyBinding, EntityBinding valueEntityBinding, PrimaryKeyAssigner keyAssigner) | |
Comparator | comparator () |
Object | firstKey () |
Object | lastKey () |
SortedMap | headMap (Object toKey) |
SortedMap | headMap (Object toKey, boolean toInclusive) |
SortedMap | tailMap (Object fromKey) |
SortedMap | tailMap (Object fromKey, boolean fromInclusive) |
SortedMap | subMap (Object fromKey, Object toKey) |
SortedMap | subMap (Object fromKey, boolean fromInclusive, Object toKey, boolean toInclusive) |
Note that this class does not conform to the standard Java collections interface in the following ways:
UnsupportedOperationException
because, for performance reasons, databases do not maintain their total record count. 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.
Definition at line 46 of file StoredSortedMap.java.
|
Creates a sorted map view of a Database.
Definition at line 68 of file StoredSortedMap.java. Referenced by subMap(). |
|
Creates a sorted map view of a Database with a PrimaryKeyAssigner. Writing is allowed for the created map.
Definition at line 96 of file StoredSortedMap.java. |
|
Creates a sorted map entity view of a Database.
Definition at line 124 of file StoredSortedMap.java. |
|
Creates a sorted map entity view of a Database with a PrimaryKeyAssigner. Writing is allowed for the created map.
Definition at line 153 of file StoredSortedMap.java. |
|
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.
Definition at line 175 of file StoredSortedMap.java. |
|
Returns the first (lowest) key currently in this sorted map. This method conforms to the SortedMap#firstKey interface.
Definition at line 189 of file StoredSortedMap.java. |
|
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.
Definition at line 265 of file StoredSortedMap.java. References subMap(). |
|
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.
Definition at line 243 of file StoredSortedMap.java. References subMap(). |
|
Returns the last (highest) element currently in this sorted map. This method conforms to the SortedMap#lastKey interface.
Definition at line 203 of file StoredSortedMap.java. |
|
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.
Definition at line 356 of file StoredSortedMap.java. References StoredSortedMap(), and com::sleepycat::collections::DataView::subView(). |
|
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.
Definition at line 329 of file StoredSortedMap.java. |
|
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.
Definition at line 307 of file StoredSortedMap.java. References subMap(). |
|
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.
Definition at line 285 of file StoredSortedMap.java. References subMap(). |