|
db4o 8.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.db4o.defragment.AbstractIdMapping
com.db4o.defragment.InMemoryIdMapping
public class InMemoryIdMapping
In-memory mapping for IDs during a defragmentation run.
This is faster than the DatabaseIdMapping
but
it uses more memory. If you have OutOfMemory conditions
with this id mapping, use the DatabaseIdMapping
instead.
Defragment
Constructor Summary | |
---|---|
InMemoryIdMapping()
|
Method Summary | |
---|---|
int |
addressForId(int id)
returns the slot address for an ID |
void |
close()
Shuts down the mapping after use. |
void |
commit()
|
void |
mapId(int id,
com.db4o.internal.slots.Slot slot)
Maps an ID to a slot |
int |
mappedId(int oldID)
Returns a previously registered mapping ID for the given ID if it exists. |
void |
open()
Prepares the mapping for use. |
com.db4o.foundation.Visitable<com.db4o.internal.slots.SlotChange> |
slotChanges()
provides a Visitable of all mappings of IDs to slots. |
Methods inherited from class com.db4o.defragment.AbstractIdMapping |
---|
mapId |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InMemoryIdMapping()
Method Detail |
---|
public int mappedId(int oldID)
IdMapping
public void open()
IdMapping
public void close()
IdMapping
public int addressForId(int id)
IdMapping
public void mapId(int id, com.db4o.internal.slots.Slot slot)
IdMapping
public com.db4o.foundation.Visitable<com.db4o.internal.slots.SlotChange> slotChanges()
IdMapping
public void commit()
|
db4o 8.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |