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 SlotallocateTargetSlot(int targetLength)ClassMetadataclassMetadataForId(int id)voidcommitIds()intmappedID(int id)IdMappingmapping()voidregisterBTreeIDs(BTree tree, IDMappingCollector collector)voidregisterUnindexed(int id)intsourceAddressByID(int sourceID)ByteArrayBuffersourceBufferByAddress(int address, int length)ByteArrayBuffersourceBufferByID(int sourceID)TransactionsystemTrans()inttargetAddressByID(int sourceID)ByteArrayBuffertargetBufferByAddress(int address, int length)inttargetNewId()voidtargetWriteBytes(ByteArrayBuffer targetPointerReader, int targetAddress)voidtargetWriteBytes(DefragmentContextImpl context, int targetAddress)voidtraverseAllIndexSlots(BTree tree, Visitor4 visitor4)IdSourceunindexedIDs()-
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()
-
-