Package com.db4o.internal.ids
Class BTreeIdSystem
- java.lang.Object
-
- com.db4o.internal.ids.BTreeIdSystem
-
- All Implemented Interfaces:
IdSystem
,StackableIdSystem
public class BTreeIdSystem extends java.lang.Object implements StackableIdSystem
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BTreeIdSystem.IdSlotMappingHandler
-
Constructor Summary
Constructors Constructor Description BTreeIdSystem(LocalObjectContainer container, StackableIdSystem idSystem)
BTreeIdSystem(LocalObjectContainer container, StackableIdSystem parentIdSystem, int maxValidId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
childId()
void
childId(int id)
void
close()
void
commit(Visitable<SlotChange> slotChanges, FreespaceCommitter freespaceCommitter)
Slot
committedSlot(int id)
void
completeInterruptedTransaction(int transactionId1, int transactionId2)
TransactionalIdSystem
freespaceIdSystem()
int
newId()
void
returnUnusedIds(Visitable<java.lang.Integer> visitable)
void
traverseIds(Visitor4<IdSlotMapping> visitor)
void
traverseOwnSlots(Procedure4<Pair<java.lang.Integer,Slot>> block)
-
-
-
Constructor Detail
-
BTreeIdSystem
public BTreeIdSystem(LocalObjectContainer container, StackableIdSystem parentIdSystem, int maxValidId)
-
BTreeIdSystem
public BTreeIdSystem(LocalObjectContainer container, StackableIdSystem idSystem)
-
-
Method Detail
-
committedSlot
public Slot committedSlot(int id)
- Specified by:
committedSlot
in interfaceIdSystem
-
completeInterruptedTransaction
public void completeInterruptedTransaction(int transactionId1, int transactionId2)
- Specified by:
completeInterruptedTransaction
in interfaceIdSystem
-
commit
public void commit(Visitable<SlotChange> slotChanges, FreespaceCommitter freespaceCommitter)
-
returnUnusedIds
public void returnUnusedIds(Visitable<java.lang.Integer> visitable)
- Specified by:
returnUnusedIds
in interfaceIdSystem
-
freespaceIdSystem
public TransactionalIdSystem freespaceIdSystem()
-
childId
public int childId()
- Specified by:
childId
in interfaceStackableIdSystem
-
childId
public void childId(int id)
- Specified by:
childId
in interfaceStackableIdSystem
-
traverseIds
public void traverseIds(Visitor4<IdSlotMapping> visitor)
-
traverseOwnSlots
public void traverseOwnSlots(Procedure4<Pair<java.lang.Integer,Slot>> block)
- Specified by:
traverseOwnSlots
in interfaceIdSystem
-
-