org.ozoneDB.core.storage.magicStore
Class IDTable
java.lang.Object
org.ozoneDB.DxLib.DxObject
org.ozoneDB.DxLib.DxAbstractCollection
org.ozoneDB.DxLib.DxAbstractMap
org.ozoneDB.DxLib.DxDiskHashMap
org.ozoneDB.core.storage.magicStore.IDTable
- All Implemented Interfaces:
- java.lang.Cloneable, DxCollection, DxCompatible, DxMap, java.io.Externalizable, java.io.Serializable
- public final class IDTable
- extends DxDiskHashMap
- Version:
- $Revision: 1.2 $Date: 2004/01/09 23:43:05 $
- Author:
- SMB
- See Also:
- Serialized Form
Constructor Summary |
IDTable(java.lang.String _baseFileName,
int _maxBufferSize,
int _cacheBits,
int[] _tableBitSizes)
|
Methods inherited from class org.ozoneDB.DxLib.DxDiskHashMap |
addForKey, cleanFiles, clear, clone, containsKey, count, elementDone, elementForKey, getFileForFilename, isEmpty, iterator, keyForElement, levelTableBitSize, maxDepth, newSubTableFile, oldTablesHashMaskShift, re_use, readRequest, remove, removeForKey, rootTable, setReusable, writeAllTables |
Methods inherited from class org.ozoneDB.DxLib.DxAbstractMap |
add, addAll, buildKey, clone, elementSet, equals, keySet, readExternal, removeAllKeys, valueClone, writeExternal |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values
MAX_CACHE_SIZE
public static final int MAX_CACHE_SIZE
- See Also:
- Constant Field Values
IDTable
public IDTable(java.lang.String _baseFileName,
int _maxBufferSize,
int _cacheBits,
int[] _tableBitSizes)
close
public void close()
throws java.lang.Exception
- Description copied from class:
DxDiskHashMap
- Close this hash map. Write all changed tables to the disk. Store also
all information that are needed to re-initialize this object from the
disk data.
- Overrides:
close
in class DxDiskHashMap
- Throws:
java.lang.Exception
writeDirtyTables
public void writeDirtyTables()
throws java.io.IOException
- Throws:
java.io.IOException
isDirtyTable
public boolean isDirtyTable(DxDiskSubTable table)
- Overrides:
isDirtyTable
in class DxDiskHashMap
printStatistics
public void printStatistics()
- Overrides:
printStatistics
in class DxDiskHashMap
newNodeLeaf
public DxDiskHashNodeLeaf newNodeLeaf()
- Overrides:
newNodeLeaf
in class DxDiskHashMap
newNodeBranch
public DxDiskHashNodeBranch newNodeBranch()
- Overrides:
newNodeBranch
in class DxDiskHashMap
newKeyData
public DxKeyData newKeyData()
- Overrides:
newKeyData
in class DxDiskHashMap
newObjectID
public ObjectID newObjectID()
newClusterID
public ClusterID newClusterID()
deleteRequest
public void deleteRequest(DxDiskSubTable subTable)
- The specified sub-table was deleted from the tree. So we have
to delete it from the table buffer too.
- Overrides:
deleteRequest
in class DxDiskHashMap
Copyright (C) The Ozone Database Project - www.ozone-db.org. All rights reserved.