ozone core 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
protected  long accessTime
           
private  int bitSize
           
private  int depth
           
private  boolean dirty
           
private  java.io.File file
           
protected  DxDiskHashMap grandParent
           
private  int hashMask
           
private  int hashMaskShift
           
protected  int itemCount
          All the items (including subTables) in the local list.
private  int maxDepth
           
(package private) static long serialVersionUID
           
private  int size
           
private  int subTableCount
           
private  DxDiskHashNode[] table
           
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()
           
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)
           
 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()
           
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

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.

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)

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

ozone core API

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