|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.osmosis.core.store.IntegerLongIndexElement
public class IntegerLongIndexElement
A single index element for an int-long index.
Constructor Summary | |
---|---|
IntegerLongIndexElement(int id,
long value)
Creates a new instance. |
|
IntegerLongIndexElement(StoreReader sr,
StoreClassRegister scr)
Creates a new instance. |
Method Summary | |
---|---|
int |
getId()
Returns the id of this index element. |
java.lang.Integer |
getKey()
Returns the key associated with this element for the purposes of indexing. |
long |
getValue()
Returns the value of this index element. |
void |
store(StoreWriter writer,
StoreClassRegister storeClassRegister)
Stores all state to the specified store writer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IntegerLongIndexElement(int id, long value)
id
- The value identifier.value
- The data value.public IntegerLongIndexElement(StoreReader sr, StoreClassRegister scr)
sr
- The store to read state from.scr
- Maintains the mapping between classes and their identifiers
within the store.Method Detail |
---|
public void store(StoreWriter writer, StoreClassRegister storeClassRegister)
store
in interface Storeable
writer
- The writer that persists data to an underlying store.storeClassRegister
- Maintains the mapping between classes and their identifiers
within the store.public java.lang.Integer getKey()
getKey
in interface IndexElement<java.lang.Integer>
public int getId()
public long getValue()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |