|
db4o 6.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.db4o.defragment.AbstractContextIDMapping
com.db4o.defragment.BTreeIDMapping
public class BTreeIDMapping
BTree mapping for IDs during a defragmentation run.
Defragment
Constructor Summary | |
---|---|
BTreeIDMapping(java.lang.String fileName)
Will maintain the ID mapping as a BTree in the file with the given path. |
|
BTreeIDMapping(java.lang.String fileName,
int nodeSize,
int cacheHeight,
int commitFrequency)
Will maintain the ID mapping as a BTree in the file with the given path. |
Method Summary | |
---|---|
void |
close()
Shuts down the mapping after use. |
int |
mappedID(int oldID,
boolean lenient)
Returns a previously registered mapping ID for the given ID if it exists. |
void |
open()
Prepares the mapping for use. |
Methods inherited from class com.db4o.defragment.AbstractContextIDMapping |
---|
mapIDs |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BTreeIDMapping(java.lang.String fileName)
fileName
- The location where the BTree file should be created.public BTreeIDMapping(java.lang.String fileName, int nodeSize, int cacheHeight, int commitFrequency)
fileName
- The location where the BTree file should be created.nodeSize
- The size of a BTree nodecacheHeight
- The height of the BTree node cachecommitFrequency
- The number of inserts after which a commit should be issued (<=0: never commit)Method Detail |
---|
public int mappedID(int oldID, boolean lenient)
ContextIDMapping
oldID
- The original IDlenient
- If true, lenient mode will be used for lookup, strict mode otherwise.
public void open()
ContextIDMapping
public void close()
ContextIDMapping
|
db4o 6.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |