|
db4o 8.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IdMapping
The ID mapping used internally during a defragmentation run.
Defragment
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 origId,
int mappedId,
boolean isClassId)
Registers a mapping for the given IDs. |
void |
mapId(int id,
com.db4o.internal.slots.Slot slot)
Maps an ID to a slot |
int |
mappedId(int origId)
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. |
Method Detail |
---|
int mappedId(int origId)
origID
- The original ID
void mapId(int origId, int mappedId, boolean isClassId)
origID
- The original IDmappedID
- The ID to be mapped to the original ID.isClassID
- true if the given original ID specifies a class slot, false otherwise.void mapId(int id, com.db4o.internal.slots.Slot slot)
id
- slot
- com.db4o.foundation.Visitable<com.db4o.internal.slots.SlotChange> slotChanges()
void open() throws java.io.IOException
java.io.IOException
void close()
int addressForId(int id)
void commit()
|
db4o 8.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |