Package com.db4o.internal
Interface DefragmentContext
-
- All Superinterfaces:
AspectVersionContext
,BufferContext
,Context
,HandlerVersionContext
,MarshallingInfo
,ReadBuffer
- All Known Implementing Classes:
DefragmentContextImpl
public interface DefragmentContext extends BufferContext, MarshallingInfo, HandlerVersionContext
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Slot
allocateMappedTargetSlot(int sourceAddress, int length)
Slot
allocateTargetSlot(int length)
ObjectContainerBase
container()
int
copyID()
int
copyIDReturnOriginalID()
int
copySlotlessID()
int
copySlotToNewMapped(int sourceAddress, int length)
int
copyUnindexedID()
void
defragment(TypeHandler4 handler)
int
handlerVersion()
void
incrementOffset(int length)
boolean
isLegacyHandlerVersion()
int
mappedID(int origID)
DefragmentServices
services()
ByteArrayBuffer
sourceBuffer()
ByteArrayBuffer
sourceBufferByAddress(int sourceAddress, int length)
ByteArrayBuffer
sourceBufferById(int sourceId)
ByteArrayBuffer
targetBuffer()
void
targetWriteBytes(int address, ByteArrayBuffer buffer)
TypeHandler4
typeHandlerForId(int id)
-
Methods inherited from interface com.db4o.internal.marshall.AspectVersionContext
declaredAspectCount, declaredAspectCount
-
Methods inherited from interface com.db4o.marshall.BufferContext
buffer
-
Methods inherited from interface com.db4o.marshall.Context
objectContainer, transaction
-
Methods inherited from interface com.db4o.internal.marshall.HandlerVersionContext
slotFormat
-
Methods inherited from interface com.db4o.internal.marshall.MarshallingInfo
beginSlot, buffer, classMetadata, isNull
-
Methods inherited from interface com.db4o.marshall.ReadBuffer
offset, readBitMap, readByte, readBytes, readInt, readLong, seek
-
-
-
-
Method Detail
-
typeHandlerForId
TypeHandler4 typeHandlerForId(int id)
-
copyID
int copyID()
-
copyIDReturnOriginalID
int copyIDReturnOriginalID()
-
copySlotlessID
int copySlotlessID()
-
copyUnindexedID
int copyUnindexedID()
-
defragment
void defragment(TypeHandler4 handler)
-
handlerVersion
int handlerVersion()
- Specified by:
handlerVersion
in interfaceHandlerVersionContext
-
incrementOffset
void incrementOffset(int length)
-
isLegacyHandlerVersion
boolean isLegacyHandlerVersion()
-
mappedID
int mappedID(int origID)
-
sourceBuffer
ByteArrayBuffer sourceBuffer()
-
targetBuffer
ByteArrayBuffer targetBuffer()
-
allocateTargetSlot
Slot allocateTargetSlot(int length)
-
allocateMappedTargetSlot
Slot allocateMappedTargetSlot(int sourceAddress, int length)
-
copySlotToNewMapped
int copySlotToNewMapped(int sourceAddress, int length) throws java.io.IOException
- Throws:
java.io.IOException
-
sourceBufferByAddress
ByteArrayBuffer sourceBufferByAddress(int sourceAddress, int length) throws java.io.IOException
- Throws:
java.io.IOException
-
sourceBufferById
ByteArrayBuffer sourceBufferById(int sourceId) throws java.io.IOException
- Throws:
java.io.IOException
-
targetWriteBytes
void targetWriteBytes(int address, ByteArrayBuffer buffer)
-
services
DefragmentServices services()
-
container
ObjectContainerBase container()
-
-