com.db4o.defragment |
|
Java Source File Name | Type | Comment |
AbstractContextIDMapping.java | Class | Base class for defragment ID mappings. |
AvailableClassFilter.java | Class | Filter that accepts only StoredClass instances whose corresponding Java
class is currently known. |
BTreeIDMapping.java | Class | BTree mapping for IDs during a defragmentation run. |
ContextIDMapping.java | Interface | The ID mapping used internally during a defragmentation run. |
DefragContextImpl.java | Class | |
Defragment.java | Class | defragments database files.
db4o structures storage inside database files as free and occupied slots, very
much like a file system - and just like a file system it can be fragmented.
The simplest way to defragment a database file:
Defragment.defrag("sample.yap");
This will move the file to "sample.yap.backup", then create a defragmented
version of this file in the original position, using a temporary file
"sample.yap.mapping". |
DefragmentConfig.java | Class | Configuration for a defragmentation run. |
DefragmentInfo.java | Class | A message from the defragmentation process. |
DefragmentListener.java | Interface | Listener for defragmentation process messages. |
FirstPassCommand.java | Class | First step in the defragmenting process: Allocates pointer slots in the target file for
each ID (but doesn't fill them in, yet) and registers the mapping from source pointer address
to target pointer address. |
PassCommand.java | Interface | Implements one step in the defragmenting process. |
SecondPassCommand.java | Class | Second step in the defragmenting process: Fills in target file pointer slots, copies
content slots from source to target and triggers ID remapping therein by calling the
appropriate yap/marshaller defrag() implementations. |
StoredClassFilter.java | Interface | Filter for StoredClass instances. |
TreeIDMapping.java | Class | In-memory mapping for IDs during a defragmentation run. |