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 classBTreeIdSystem.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 intchildId()voidchildId(int id)voidclose()voidcommit(Visitable<SlotChange> slotChanges, FreespaceCommitter freespaceCommitter)SlotcommittedSlot(int id)voidcompleteInterruptedTransaction(int transactionId1, int transactionId2)TransactionalIdSystemfreespaceIdSystem()intnewId()voidreturnUnusedIds(Visitable<java.lang.Integer> visitable)voidtraverseIds(Visitor4<IdSlotMapping> visitor)voidtraverseOwnSlots(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:
committedSlotin interfaceIdSystem
-
completeInterruptedTransaction
public void completeInterruptedTransaction(int transactionId1, int transactionId2)- Specified by:
completeInterruptedTransactionin interfaceIdSystem
-
commit
public void commit(Visitable<SlotChange> slotChanges, FreespaceCommitter freespaceCommitter)
-
returnUnusedIds
public void returnUnusedIds(Visitable<java.lang.Integer> visitable)
- Specified by:
returnUnusedIdsin interfaceIdSystem
-
freespaceIdSystem
public TransactionalIdSystem freespaceIdSystem()
-
childId
public int childId()
- Specified by:
childIdin interfaceStackableIdSystem
-
childId
public void childId(int id)
- Specified by:
childIdin interfaceStackableIdSystem
-
traverseIds
public void traverseIds(Visitor4<IdSlotMapping> visitor)
-
traverseOwnSlots
public void traverseOwnSlots(Procedure4<Pair<java.lang.Integer,Slot>> block)
- Specified by:
traverseOwnSlotsin interfaceIdSystem
-
-