Package com.db4o.defragment
Interface DefragmentServices
-
- All Superinterfaces:
IDMapping
- All Known Implementing Classes:
DefragmentServicesImpl
public interface DefragmentServices extends IDMapping
Encapsulates services involving source and target database files during defragmenting.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Slot
allocateTargetSlot(int targetLength)
ClassMetadata
classMetadataForId(int id)
void
commitIds()
int
mappedID(int id)
IdMapping
mapping()
void
registerBTreeIDs(BTree tree, IDMappingCollector collector)
void
registerUnindexed(int id)
int
sourceAddressByID(int sourceID)
ByteArrayBuffer
sourceBufferByAddress(int address, int length)
ByteArrayBuffer
sourceBufferByID(int sourceID)
Transaction
systemTrans()
int
targetAddressByID(int sourceID)
ByteArrayBuffer
targetBufferByAddress(int address, int length)
int
targetNewId()
void
targetWriteBytes(ByteArrayBuffer targetPointerReader, int targetAddress)
void
targetWriteBytes(DefragmentContextImpl context, int targetAddress)
void
traverseAllIndexSlots(BTree tree, Visitor4 visitor4)
IdSource
unindexedIDs()
-
Methods inherited from interface com.db4o.internal.mapping.IDMapping
mapIDs, strictMappedID
-
-
-
-
Method Detail
-
sourceBufferByAddress
ByteArrayBuffer sourceBufferByAddress(int address, int length) throws java.io.IOException
- Throws:
java.io.IOException
-
targetBufferByAddress
ByteArrayBuffer targetBufferByAddress(int address, int length) throws java.io.IOException
- Throws:
java.io.IOException
-
sourceBufferByID
ByteArrayBuffer sourceBufferByID(int sourceID)
-
allocateTargetSlot
Slot allocateTargetSlot(int targetLength)
-
targetWriteBytes
void targetWriteBytes(ByteArrayBuffer targetPointerReader, int targetAddress)
-
systemTrans
Transaction systemTrans()
-
targetWriteBytes
void targetWriteBytes(DefragmentContextImpl context, int targetAddress)
-
registerBTreeIDs
void registerBTreeIDs(BTree tree, IDMappingCollector collector)
-
classMetadataForId
ClassMetadata classMetadataForId(int id)
-
mappedID
int mappedID(int id)
-
registerUnindexed
void registerUnindexed(int id)
-
unindexedIDs
IdSource unindexedIDs()
-
sourceAddressByID
int sourceAddressByID(int sourceID)
-
targetAddressByID
int targetAddressByID(int sourceID)
-
targetNewId
int targetNewId()
-
mapping
IdMapping mapping()
-
commitIds
void commitIds()
-
-