|
ozone API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ozoneDB.DxLib.DxObject
org.ozoneDB.DxLib.DxAbstractCollection
org.ozoneDB.DxLib.DxAbstractMap
org.ozoneDB.DxLib.DxDiskHashMap
Field Summary | |
int |
bufferAccesses
|
int |
bufferHits
|
int |
cacheAccesses
|
int |
cacheHits
|
static java.lang.String |
ROOT_TABLE_NAME
|
Constructor Summary | |
DxDiskHashMap(java.lang.String _baseFileName,
int _maxBufferSize,
int _cacheBits,
int _tableBitSize)
|
|
DxDiskHashMap(java.lang.String _baseFileName,
int _maxBufferSize,
int _cacheBits,
int[] _tableBitSizes)
|
Method Summary | |
boolean |
addForKey(java.lang.Object obj,
java.lang.Object key)
|
void |
cleanFiles()
Delete all the files used by this hashtable. |
void |
clear()
|
java.lang.Object |
clone()
liefert eine kopie des objektes; sollte von subclasses ueberschrieben werden; |
void |
close()
Close this hash map. |
boolean |
containsKey(java.lang.Object key)
|
int |
count()
|
void |
deleteRequest(DxDiskSubTable subTable)
The specified sub-table was deleted from the tree. |
java.lang.Object |
elementForKey(java.lang.Object key)
Gives the element for the specified key. |
java.io.File |
getFileForFilename(java.lang.String filename)
Computes a File object which represents the DxDiskSubTable file denoted by the given filename. |
boolean |
isDirtyTable(DxDiskSubTable table)
|
boolean |
isEmpty()
|
DxIterator |
iterator()
|
java.lang.Object |
keyForElement(java.lang.Object obj)
Returns the key for the given object, which has to be the same object as stored in the map. |
int |
levelTableBitSize(int depth)
|
int |
maxDepth()
|
DxKeyData |
newKeyData()
|
DxDiskHashNodeBranch |
newNodeBranch()
|
DxDiskHashNodeLeaf |
newNodeLeaf()
|
java.io.File |
newSubTableFile()
This method is synchronized because sub table filenames have to be unique. |
int |
oldTablesHashMaskShift()
|
void |
printStatistics()
|
void |
re_use()
Reuse an existing table from disk. |
boolean |
remove(java.lang.Object obj)
Remove the first occurence of an object that equals the the specified object. |
java.lang.Object |
removeForKey(java.lang.Object key)
|
DxDiskSubTable |
rootTable()
|
void |
setReusable(boolean flag)
|
void |
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 |
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 |
public static final java.lang.String ROOT_TABLE_NAME
public int bufferAccesses
public int bufferHits
public int cacheAccesses
public int cacheHits
Constructor Detail |
public DxDiskHashMap(java.lang.String _baseFileName, int _maxBufferSize, int _cacheBits, int[] _tableBitSizes)
public DxDiskHashMap(java.lang.String _baseFileName, int _maxBufferSize, int _cacheBits, int _tableBitSize)
Method Detail |
public void clear()
public DxDiskSubTable rootTable()
public DxDiskHashNodeLeaf newNodeLeaf()
public DxDiskHashNodeBranch newNodeBranch()
public DxKeyData newKeyData()
public boolean isDirtyTable(DxDiskSubTable table)
public void re_use() throws java.lang.Exception
java.lang.Exception
public void close() throws java.lang.Exception
java.lang.Exception
public void setReusable(boolean flag) throws java.io.IOException
java.io.IOException
public java.lang.Object clone()
DxObject
clone
in interface DxCollection
clone
in class DxObject
public void printStatistics()
public void deleteRequest(DxDiskSubTable subTable)
public java.io.File newSubTableFile()
public java.io.File getFileForFilename(java.lang.String filename)
public void cleanFiles()
public void writeAllTables() throws java.lang.Exception
java.lang.Exception
public boolean addForKey(java.lang.Object obj, java.lang.Object key)
public java.lang.Object elementForKey(java.lang.Object key)
Note: This method is synchronized because the cache of subtables may change.
public java.lang.Object keyForElement(java.lang.Object obj)
DxMap
public boolean remove(java.lang.Object obj)
DxAbstractCollection
remove
in interface DxCollection
remove
in class DxAbstractCollection
public java.lang.Object removeForKey(java.lang.Object key)
public DxIterator iterator()
public int count()
public boolean isEmpty()
public boolean containsKey(java.lang.Object key)
containsKey
in interface DxMap
containsKey
in class DxAbstractMap
public int levelTableBitSize(int depth)
public int maxDepth()
public int oldTablesHashMaskShift()
|
ozone API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |