public interface HGSortIndex<KeyType,ValueType> extends HGIndex<KeyType,ValueType>, HGOrderedSearchable<KeyType,ValueType>
A HGSortIndex
is a HGIndex
that maintains its
keys in an order relation. It is therefore an HGOrderedSearchable
entity.
Taking advantage of the new Java 1.5 feature allowing overriding methods to
further specialize on the return type (i.e. allowing contravariant return types),
all lookup methods of the super-interfaces are redeclared to return a
HGRandomAccessResult
.
Modifier and Type | Method and Description |
---|---|
HGSearchResult<ValueType> |
findGT(KeyType key)
Return a range of all values strictly greater than
the specified key.
|
HGSearchResult<ValueType> |
findGTE(KeyType key)
Return a range of all values greater than or equal to
the specified key.
|
HGSearchResult<ValueType> |
findLT(KeyType key)
Return a range of all values strictly less than
the specified key.
|
HGSearchResult<ValueType> |
findLTE(KeyType key)
Return a range of all values less than or equal to
the specified key.
|
addEntry, close, count, count, find, findFirst, getName, isOpen, open, removeAllEntries, removeEntry, scanKeys, scanValues
HGSearchResult<ValueType> findLT(KeyType key)
HGOrderedSearchable
Return a range of all values strictly less than the specified key.
findLT
in interface HGOrderedSearchable<KeyType,ValueType>
key
- The search key.HGSearchResult
over the resulting range of values.HGSearchResult<ValueType> findGT(KeyType key)
HGOrderedSearchable
Return a range of all values strictly greater than the specified key.
findGT
in interface HGOrderedSearchable<KeyType,ValueType>
key
- The search key.HGSearchResult
over the resulting range of values.HGSearchResult<ValueType> findLTE(KeyType key)
HGOrderedSearchable
Return a range of all values less than or equal to the specified key.
findLTE
in interface HGOrderedSearchable<KeyType,ValueType>
key
- The search key.HGSearchResult
over the resulting range of values.HGSearchResult<ValueType> findGTE(KeyType key)
HGOrderedSearchable
Return a range of all values greater than or equal to the specified key.
findGTE
in interface HGOrderedSearchable<KeyType,ValueType>
key
- The search key.HGSearchResult
over the resulting range of values.Copyright © 2015. All rights reserved.