DbStorage.driver
Class DictionaryHeaderDriver

java.lang.Object
  extended byDbStorage.driver.DictionaryHeaderDriver

public final class DictionaryHeaderDriver
extends java.lang.Object

This class drives a dictionary header, this is stored in the DICTIONARY segment. In a similar way of content' nodes the dictionary header keeps 4 data structures, the header points tho these structures.


Field Summary
static int IDS_HEAD_OFFSET
           
static int IDS_ROOT_OFFSET
           
static int NAMES_HEAD_OFFSET
           
static int NAMES_ROOT_OFFSET
           
 
Constructor Summary
DictionaryHeaderDriver()
           
 
Method Summary
static void createDictionaryHeader(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress)
          Creates a dictionary header.
static void getIdsHead(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress destiny)
          Gets the head's address (in the DICTIONARY segment) of the id ordered list collection of labeled SSD contained in the dictionary.
static void getIdsRoot(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress destiny)
          Gets the root's address (in the DICTIONARY segment) of the id ordered tree collection of labeled SSD contained in the dictionary.
static void getNamesHead(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress destiny)
          Gets the head's address (in the DICTIONARY segment) of the label ordered tree collection of labeled SSD contained in the dictionary.
static void getNamesRoot(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress destiny)
          Gets the root's address (in the DICTIONARY segment) of the label ordered tree collection of labeled SSD contained in the dictionary.
static void setIdsHead(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress source)
          Sets the head's address (in the DICTIONARY segment) of the id ordered list collection of labeled SSD contained in the dictionary.
static void setIdsRoot(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress source)
          Sets the root's address (in the DICTIONARY segment) of the id ordered tree collection of labeled SSD contained in the dictionary.
static void setNamesHead(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress source)
          Sets the head's address (in the DICTIONARY segment) of the label ordered tree collection of labeled SSD contained in the dictionary.
static void setNamesRoot(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress source)
          Sets the root's address (in the DICTIONARY segment) of the label ordered tree collection of labeled SSD contained in the dictionary.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IDS_ROOT_OFFSET

public static final int IDS_ROOT_OFFSET
See Also:
Constant Field Values

IDS_HEAD_OFFSET

public static final int IDS_HEAD_OFFSET
See Also:
Constant Field Values

NAMES_ROOT_OFFSET

public static final int NAMES_ROOT_OFFSET
See Also:
Constant Field Values

NAMES_HEAD_OFFSET

public static final int NAMES_HEAD_OFFSET
See Also:
Constant Field Values
Constructor Detail

DictionaryHeaderDriver

public DictionaryHeaderDriver()
Method Detail

createDictionaryHeader

public static void createDictionaryHeader(DbStorageManager dbsm,
                                          long transactionNumber,
                                          DbUnitAddress unitAddress)
                                   throws storage.StorageException,
                                          java.io.IOException
Creates a dictionary header.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
unitAddress - The address where the structure will be stored in the DICTIONARY segment.
Throws:
storage.StorageException
java.io.IOException

getIdsRoot

public static void getIdsRoot(DbStorageManager dbsm,
                              long transactionNumber,
                              DbUnitAddress unitAddress,
                              DbUnitAddress destiny)
                       throws storage.StorageException,
                              java.io.IOException
Gets the root's address (in the DICTIONARY segment) of the id ordered tree collection of labeled SSD contained in the dictionary.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
unitAddress - The address of the dictionary header.
destiny - Where the retrieved unit address will be stored.
Throws:
storage.StorageException
java.io.IOException

setIdsRoot

public static void setIdsRoot(DbStorageManager dbsm,
                              long transactionNumber,
                              DbUnitAddress unitAddress,
                              DbUnitAddress source)
                       throws storage.StorageException,
                              java.io.IOException
Sets the root's address (in the DICTIONARY segment) of the id ordered tree collection of labeled SSD contained in the dictionary.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
unitAddress - The address of the dictionary header.
source - Where the unit address is stored.
Throws:
storage.StorageException
java.io.IOException

getIdsHead

public static void getIdsHead(DbStorageManager dbsm,
                              long transactionNumber,
                              DbUnitAddress unitAddress,
                              DbUnitAddress destiny)
                       throws storage.StorageException,
                              java.io.IOException
Gets the head's address (in the DICTIONARY segment) of the id ordered list collection of labeled SSD contained in the dictionary.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
unitAddress - The address of the dictionary header.
destiny - Where the unit address will be stored.
Throws:
storage.StorageException
java.io.IOException

setIdsHead

public static void setIdsHead(DbStorageManager dbsm,
                              long transactionNumber,
                              DbUnitAddress unitAddress,
                              DbUnitAddress source)
                       throws storage.StorageException,
                              java.io.IOException
Sets the head's address (in the DICTIONARY segment) of the id ordered list collection of labeled SSD contained in the dictionary.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
unitAddress - The address of the dictionary header.
source - Where the unit address is stored.
Throws:
storage.StorageException
java.io.IOException

getNamesRoot

public static void getNamesRoot(DbStorageManager dbsm,
                                long transactionNumber,
                                DbUnitAddress unitAddress,
                                DbUnitAddress destiny)
                         throws storage.StorageException,
                                java.io.IOException
Gets the root's address (in the DICTIONARY segment) of the label ordered tree collection of labeled SSD contained in the dictionary.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
unitAddress - The address of the dictionary header.
destiny - Where the retrieved unit address will be stored.
Throws:
storage.StorageException
java.io.IOException

setNamesRoot

public static void setNamesRoot(DbStorageManager dbsm,
                                long transactionNumber,
                                DbUnitAddress unitAddress,
                                DbUnitAddress source)
                         throws storage.StorageException,
                                java.io.IOException
Sets the root's address (in the DICTIONARY segment) of the label ordered tree collection of labeled SSD contained in the dictionary.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
unitAddress - The address of the dictionary header.
source - Where the unit address is stored.
Throws:
storage.StorageException
java.io.IOException

getNamesHead

public static void getNamesHead(DbStorageManager dbsm,
                                long transactionNumber,
                                DbUnitAddress unitAddress,
                                DbUnitAddress destiny)
                         throws storage.StorageException,
                                java.io.IOException
Gets the head's address (in the DICTIONARY segment) of the label ordered tree collection of labeled SSD contained in the dictionary.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
unitAddress - The address of the dictionary header.
destiny - Where the unit address will be stored.
Throws:
storage.StorageException
java.io.IOException

setNamesHead

public static void setNamesHead(DbStorageManager dbsm,
                                long transactionNumber,
                                DbUnitAddress unitAddress,
                                DbUnitAddress source)
                         throws storage.StorageException,
                                java.io.IOException
Sets the head's address (in the DICTIONARY segment) of the label ordered tree collection of labeled SSD contained in the dictionary.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
unitAddress - The address of the dictionary header.
source - Where the unit address is stored.
Throws:
storage.StorageException
java.io.IOException