ozone core API

org.ozoneDB.core.wizardStore
Class IDTable

java.lang.Object
  |
  +--org.ozoneDB.DxLib.DxObject
        |
        +--org.ozoneDB.DxLib.DxAbstractCollection
              |
              +--org.ozoneDB.DxLib.DxAbstractMap
                    |
                    +--org.ozoneDB.DxLib.DxDiskHashMap
                          |
                          +--org.ozoneDB.core.wizardStore.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.3 $Date: 2002/06/08 00:49:39 $
Author:
SMB
See Also:
Serialized Form

Field Summary
static int MAX_CACHE_SIZE
           
(package private) static long serialVersionUID
           
 
Fields inherited from class org.ozoneDB.DxLib.DxDiskHashMap
buffer, bufferAccesses, bufferHits, cacheAccesses, cacheHits, maxBufferSize, ROOT_TABLE_NAME, tableBitSize, tableDirectory
 
Constructor Summary
IDTable(java.lang.String _baseFileName, int _maxBufferSize, int _cacheBits, int _tableBitSize)
           
 
Method Summary
 void close()
          Close this hash map.
 void deleteRequest(DxDiskSubTable subTable)
          The specified sub-table was deleted from the tree.
 boolean isDirtyTable(DxDiskSubTable table)
           
 ClusterID newClusterID()
           
 DxKeyData newKeyData()
           
 DxDiskHashNodeBranch newNodeBranch()
           
 DxDiskHashNodeLeaf newNodeLeaf()
           
 ObjectID newObjectID()
           
 void printStatistics()
           
 void writeDirtyTables()
           
 
Methods inherited from class org.ozoneDB.DxLib.DxDiskHashMap
addForKey, cleanFiles, clear, clone, containsKey, count, elementDone, elementForKey, getFileForFilename, isEmpty, iterator, keyForElement, newSubTableFile, 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 org.ozoneDB.DxLib.DxAbstractCollection
addAll, clone, contains, containsAll, removeAll, toArray
 
Methods inherited from class org.ozoneDB.DxLib.DxObject
isLess
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ozoneDB.DxLib.DxCollection
addAll, contains, containsAll, removeAll, toArray
 
Methods inherited from interface org.ozoneDB.DxLib.DxCompatible
isLess
 

Field Detail

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
Constructor Detail

IDTable

public IDTable(java.lang.String _baseFileName,
               int _maxBufferSize,
               int _cacheBits,
               int _tableBitSize)
Method Detail

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
java.lang.Exception

writeDirtyTables

public void writeDirtyTables()
                      throws java.io.IOException
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

ozone core API

Copyright (C) The Ozone Database Project - www.ozone-db.org. All rights reserved.