org.ozoneDB.DxLib
Class DxDiskSubTable
java.lang.Object
org.ozoneDB.DxLib.DxDiskSubTable
- All Implemented Interfaces:
- java.io.Externalizable, java.io.Serializable
- public final class DxDiskSubTable
- extends java.lang.Object
- implements java.io.Externalizable
- Author:
- SMB, Medium.net
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values
timeCount
public static int timeCount
size
private int size
bitSize
private int bitSize
maxDepth
private int maxDepth
file
private java.io.File file
depth
private int depth
hashMask
private int hashMask
hashMaskShift
private int hashMaskShift
grandParent
protected DxDiskHashMap grandParent
table
private DxDiskHashNode[] table
accessTime
protected long accessTime
dirty
private boolean dirty
subTableCount
private int subTableCount
itemCount
protected int itemCount
- All the items (including subTables) in the local list.
DxDiskSubTable
public DxDiskSubTable(DxDiskHashMap grandParent)
DxDiskSubTable
public DxDiskSubTable(DxDiskHashMap _grandParent,
int _depth)
getFile
public java.io.File getFile()
table
public DxDiskHashNode[] table()
fetchedTable
public DxDiskHashNode[] fetchedTable()
throws java.lang.Exception
- Throws:
java.lang.Exception
empty
public void empty()
count
public int count()
maxDepth
public int maxDepth()
depth
public int depth()
bitSize
public int bitSize()
hashMask
public int hashMask()
deleteFile
public void deleteFile()
hashKey
public int hashKey(int key)
fetchTable
protected void fetchTable()
throws java.lang.Exception
- Throws:
java.lang.Exception
touch
protected void touch()
isLeaf
public boolean isLeaf()
isDirty
public boolean isDirty()
addForKey
public boolean addForKey(java.lang.Object obj,
java.lang.Object key)
throws java.lang.Exception
- Throws:
java.lang.Exception
elementForKey
public final java.lang.Object elementForKey(java.lang.Object key,
int hashCode)
throws java.lang.Exception
- Throws:
java.lang.Exception
elementDone
protected void elementDone(DxDiskHashCompatible obj)
removeForKey
public java.lang.Object removeForKey(java.lang.Object key)
throws java.lang.Exception
- Throws:
java.lang.Exception
writeExternal
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
- Schreibt nur die representation in einem HashNode aber
nicht die tabelle selber.
- Specified by:
writeExternal
in interface java.io.Externalizable
- Throws:
java.io.IOException
readExternal
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Specified by:
readExternal
in interface java.io.Externalizable
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
writeTable
public void writeTable()
throws java.io.IOException
- Schreibt den inhalt der ganzen tabelle aber nicht die
sub-tabellen. Der name wird aus dem baseFileName und
- Throws:
java.io.IOException
readTable
public void readTable()
throws java.io.IOException,
java.lang.ClassNotFoundException
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
Copyright (C) The Ozone Database Project - www.ozone-db.org. All rights reserved.