ozone API

org.ozoneDB.DxLib
Class DxDiskSubTable

java.lang.Object
  extended byorg.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

Field Summary
static int timeCount
           
 
Constructor Summary
DxDiskSubTable(DxDiskHashMap grandParent)
           
DxDiskSubTable(DxDiskHashMap _grandParent, int _depth)
           
 
Method Summary
 boolean addForKey(java.lang.Object obj, java.lang.Object key)
           
 int bitSize()
           
 int count()
           
 void deleteFile()
           
 int depth()
           
 java.lang.Object elementForKey(java.lang.Object key, int hashCode)
           
 void empty()
           
 DxDiskHashNode[] fetchedTable()
           
 java.io.File getFile()
           
 int hashKey(int key)
           
 int hashMask()
           
 boolean isDirty()
           
 boolean isLeaf()
           
 int maxDepth()
           
 void readExternal(java.io.ObjectInput in)
           
 void readTable()
           
 java.lang.Object removeForKey(java.lang.Object key)
           
 DxDiskHashNode[] table()
           
 void writeExternal(java.io.ObjectOutput out)
          Schreibt nur die representation in einem HashNode aber nicht die tabelle selber.
 void writeTable()
          Schreibt den inhalt der ganzen tabelle aber nicht die sub-tabellen.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

timeCount

public static int timeCount
Constructor Detail

DxDiskSubTable

public DxDiskSubTable(DxDiskHashMap grandParent)

DxDiskSubTable

public DxDiskSubTable(DxDiskHashMap _grandParent,
                      int _depth)
Method Detail

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)

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

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

ozone API

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