org.openstreetmap.osmosis.core.store
Interface IndexElement<K>
- Type Parameters:
K
- The index key type.
- All Superinterfaces:
- Storeable
- All Known Implementing Classes:
- IntegerLongIndexElement, LongLongIndexElement
public interface IndexElement<K>
- extends Storeable
Defines the methods to be implemented by data classes stored within an index.
Classes implementing this interface provide Storeable functionality with
restrictions.
- All instances must persist using an identical number of bytes.
- The key must be persisted first allowing a key instance to be loaded
independently.
- Author:
- Brett Henderson
Method Summary |
K |
getKey()
Returns the key associated with this element for the purposes of
indexing. |
Methods inherited from interface org.openstreetmap.osmosis.core.store.Storeable |
store |
getKey
K getKey()
- Returns the key associated with this element for the purposes of
indexing.
- Returns:
- The key of the index element.