ozone core API

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

Field Summary
protected  long accessTime
           
private  int bitSize
           
protected  int depth
           
protected  boolean dirty
           
protected  java.io.File file
           
protected  DxDiskHashMap grandParent
           
protected  int hashMask
           
protected  int itemCount
          All the items (including subTables) in the local list.
private  int maxDepth
           
(package private) static long serialVersionUID
           
private  int size
           
protected  int subTableCount
           
protected  DxDiskHashNode[] table
           
static int timeCount
           
 
Constructor Summary
DxDiskSubTable(DxDiskHashMap grandParent)
           
DxDiskSubTable(DxDiskHashMap _grandParent, int _depth, int _bitSize)
           
 
Method Summary
 boolean addForKey(java.lang.Object obj, java.lang.Object key)
           
 int count()
           
 void deleteFile()
           
protected  void elementDone(DxDiskHashCompatible obj)
           
 java.lang.Object elementForKey(java.lang.Object key, int hashCode)
           
 void empty()
           
 DxDiskHashNode[] fetchedTable()
           
protected  void fetchTable()
           
 java.io.File getFile()
           
 int hashKey(int key)
           
 boolean isDirty()
           
 boolean isLeaf()
           
 void readExternal(java.io.ObjectInput in)
           
 void readTable()
           
 java.lang.Object removeForKey(java.lang.Object key)
           
 DxDiskHashNode[] table()
           
protected  void touch()
           
 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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

protected java.io.File file

depth

protected int depth

hashMask

protected int hashMask

grandParent

protected DxDiskHashMap grandParent

table

protected DxDiskHashNode[] table

accessTime

protected long accessTime

dirty

protected boolean dirty

subTableCount

protected int subTableCount

itemCount

protected int itemCount
All the items (including subTables) in the local list.

Constructor Detail

DxDiskSubTable

public DxDiskSubTable(DxDiskHashMap grandParent)

DxDiskSubTable

public DxDiskSubTable(DxDiskHashMap _grandParent,
                      int _depth,
                      int _bitSize)
Method Detail

getFile

public java.io.File getFile()

table

public DxDiskHashNode[] table()

fetchedTable

public DxDiskHashNode[] fetchedTable()
                              throws java.lang.Exception
java.lang.Exception

empty

public void empty()

count

public int count()

deleteFile

public void deleteFile()

hashKey

public int hashKey(int key)

fetchTable

protected void fetchTable()
                   throws java.lang.Exception
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
java.lang.Exception

elementForKey

public final java.lang.Object elementForKey(java.lang.Object key,
                                            int hashCode)
                                     throws java.lang.Exception
java.lang.Exception

elementDone

protected void elementDone(DxDiskHashCompatible obj)

removeForKey

public java.lang.Object removeForKey(java.lang.Object key)
                              throws java.lang.Exception
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
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
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

java.io.IOException

readTable

public void readTable()
               throws java.io.IOException,
                      java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException

ozone core API

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