|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectDbStorage.driver.DictionaryContentNodeDriver
This class drives a dictionary content node for building the dictionary content, this is stored in the DICTIONARY segment. A dictionary contents node keeps 4 data structures to storage the dictionary entries.
Field Summary | |
static int |
ID_HEIGHT_OFFSET
|
static int |
ID_OFFSET
|
static int |
LEFT_ID_NODE_OFFSET
|
static int |
LEFT_NAME_NODE_OFFSET
|
static int |
NAME_CONTENT_EXTENSION_OFFSET
|
static int |
NAME_CONTENT_OFFSET
|
static int |
NAME_HEIGHT_OFFSET
|
static int |
NAME_SIZE_OFFSET
|
static int |
NEXT_ID_NODE_OFFSET
|
static int |
NEXT_NAME_NODE_OFFSET
|
static int |
PARENT_ID_NODE_OFFSET
|
static int |
PARENT_NAME_NODE_OFFSET
|
static int |
PREVIOUS_ID_NODE_OFFSET
|
static int |
PREVIOUS_NAME_NODE_OFFSET
|
static int |
RIGHT_ID_NODE_OFFSET
|
static int |
RIGHT_NAME_NODE_OFFSET
|
Constructor Summary | |
DictionaryContentNodeDriver()
|
Method Summary | |
static void |
createDictionaryContentNode(DbStorageManager dbsm,
long transactionNumber,
DbUnitAddress newUnitAddress)
Creates a dictionary content node. |
static void |
getId(DbStorageManager dbsm,
long transactionNumber,
DbUnitAddress unitAddress,
PhysicalID id)
Gets the physical id in the specified node. |
static byte |
getIdHeight(DbStorageManager dbsm,
long transactionNumber,
DbUnitAddress unitAddress)
Gets the height of the specified node in the tree order by id. |
static void |
getLeftIdNode(DbStorageManager dbsm,
long transactionNumber,
DbUnitAddress unitAddress,
DbUnitAddress destiny)
Gets the left node's address of the specified node, in the order by id. |
static void |
getLeftNameNode(DbStorageManager dbsm,
long transactionNumber,
DbUnitAddress unitAddress,
DbUnitAddress destiny)
Gets the left node's address of the specified node, in the order by name. |
static int |
getNameContent(DbStorageManager dbsm,
long transactionNumber,
DbUnitAddress unitAddress,
int maxLength,
byte[] b,
int off)
Gets the part of name's content stored in the specified node. |
static void |
getNameContentExtension(DbStorageManager dbsm,
long transactionNumber,
DbUnitAddress unitAddress,
DbUnitAddress destiny)
Gets the name content extension's address (in the DICTIONARY segment) of the name in the specified node. |
static byte |
getNameHeight(DbStorageManager dbsm,
long transactionNumber,
DbUnitAddress unitAddress)
Gets the height of the specified node in the tree order by name. |
static int |
getNameSize(DbStorageManager dbsm,
long transactionNumber,
DbUnitAddress unitAddress)
Returns the size of the name in the specified node. |
static void |
getNextIdNode(DbStorageManager dbsm,
long transactionNumber,
DbUnitAddress unitAddress,
DbUnitAddress destiny)
Gets the next node's address of the specified node, in the order by id. |
static void |
getNextNameNode(DbStorageManager dbsm,
long transactionNumber,
DbUnitAddress unitAddress,
DbUnitAddress destiny)
Gets the next node's address of the specified node, in the order by name. |
static void |
getParentIdNode(DbStorageManager dbsm,
long transactionNumber,
DbUnitAddress unitAddress,
DbUnitAddress destiny)
Gets the parent node's address of the specified node, in the tree order by id. |
static void |
getParentNameNode(DbStorageManager dbsm,
long transactionNumber,
DbUnitAddress unitAddress,
DbUnitAddress destiny)
Gets the parent node's address of the specified node, in the tree order by name. |
static void |
getPreviousIdNode(DbStorageManager dbsm,
long transactionNumber,
DbUnitAddress unitAddress,
DbUnitAddress destiny)
Gets the previous node's address of the specified node, in the order by id. |
static void |
getPreviousNameNode(DbStorageManager dbsm,
long transactionNumber,
DbUnitAddress unitAddress,
DbUnitAddress destiny)
Gets the previous node's address of the specified node, in the order by name. |
static void |
getRightIdNode(DbStorageManager dbsm,
long transactionNumber,
DbUnitAddress unitAddress,
DbUnitAddress destiny)
Gets the right node's address of the specified node, in the order by id. |
static void |
getRightNameNode(DbStorageManager dbsm,
long transactionNumber,
DbUnitAddress unitAddress,
DbUnitAddress destiny)
Gets the right node's address of the specified node, in the order by name. |
static void |
setId(DbStorageManager dbsm,
long transactionNumber,
DbUnitAddress unitAddress,
PhysicalID id)
Sets the physical id in the specified node. |
static void |
setIdHeight(DbStorageManager dbsm,
long transactionNumber,
DbUnitAddress unitAddress,
byte source)
Sets the height of the specified node in the tree order by id. |
static void |
setLeftIdNode(DbStorageManager dbsm,
long transactionNumber,
DbUnitAddress unitAddress,
DbUnitAddress source)
Sets the left node's address of the specified node, in the order by id. |
static void |
setLeftNameNode(DbStorageManager dbsm,
long transactionNumber,
DbUnitAddress unitAddress,
DbUnitAddress source)
Sets the left node's address of the specified node, in the order by name. |
static int |
setNameContent(DbStorageManager dbsm,
long transactionNumber,
DbUnitAddress unitAddress,
int maxLength,
byte[] b,
int off)
Sets the part of name's content stored in the specified node. |
static void |
setNameContentExtension(DbStorageManager dbsm,
long transactionNumber,
DbUnitAddress unitAddress,
DbUnitAddress source)
Sets the name content extension's address (in the DICTIONARY segment) of the name in the specified node. |
static void |
setNameHeight(DbStorageManager dbsm,
long transactionNumber,
DbUnitAddress unitAddress,
byte source)
Sets the height of the specified node in the tree order by name. |
static void |
setNameSize(DbStorageManager dbsm,
long transactionNumber,
DbUnitAddress unitAddress,
int source)
Sets the size of the name in the specified node. |
static void |
setNextIdNode(DbStorageManager dbsm,
long transactionNumber,
DbUnitAddress unitAddress,
DbUnitAddress source)
Sets the next node's address of the specified node, in the order by id. |
static void |
setNextNameNode(DbStorageManager dbsm,
long transactionNumber,
DbUnitAddress unitAddress,
DbUnitAddress source)
Sets the next node's address of the specified node, in the order by name. |
static void |
setParentIdNode(DbStorageManager dbsm,
long transactionNumber,
DbUnitAddress unitAddress,
DbUnitAddress source)
Sets the previous node's address of the specified node, in the tree order by id. |
static void |
setParentNameNode(DbStorageManager dbsm,
long transactionNumber,
DbUnitAddress unitAddress,
DbUnitAddress source)
Sets the parent node's address of the specified node, in the tree order by name. |
static void |
setPreviousIdNode(DbStorageManager dbsm,
long transactionNumber,
DbUnitAddress unitAddress,
DbUnitAddress source)
Sets the previous node's address of the specified node, in the order by id. |
static void |
setPreviousNameNode(DbStorageManager dbsm,
long transactionNumber,
DbUnitAddress unitAddress,
DbUnitAddress source)
Sets the previous node's address of the specified node, in the order by name. |
static void |
setRightIdNode(DbStorageManager dbsm,
long transactionNumber,
DbUnitAddress unitAddress,
DbUnitAddress source)
Sets the right node's address of the specified node, in the order by id. |
static void |
setRightNameNode(DbStorageManager dbsm,
long transactionNumber,
DbUnitAddress unitAddress,
DbUnitAddress source)
Sets the right node's address of the specified node, in the order by name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int PREVIOUS_ID_NODE_OFFSET
public static final int NEXT_ID_NODE_OFFSET
public static final int LEFT_ID_NODE_OFFSET
public static final int RIGHT_ID_NODE_OFFSET
public static final int PARENT_ID_NODE_OFFSET
public static final int ID_HEIGHT_OFFSET
public static final int PREVIOUS_NAME_NODE_OFFSET
public static final int NEXT_NAME_NODE_OFFSET
public static final int LEFT_NAME_NODE_OFFSET
public static final int RIGHT_NAME_NODE_OFFSET
public static final int PARENT_NAME_NODE_OFFSET
public static final int NAME_HEIGHT_OFFSET
public static final int ID_OFFSET
public static final int NAME_CONTENT_EXTENSION_OFFSET
public static final int NAME_SIZE_OFFSET
public static final int NAME_CONTENT_OFFSET
Constructor Detail |
public DictionaryContentNodeDriver()
Method Detail |
public static void createDictionaryContentNode(DbStorageManager dbsm, long transactionNumber, DbUnitAddress newUnitAddress) throws storage.StorageException, java.io.IOException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.newUnitAddress
- The address of the created structure in the DICTIONARY segment.
storage.StorageException
java.io.IOException
public static void getPreviousIdNode(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress destiny) throws storage.StorageException, java.io.IOException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.unitAddress
- The address of the dictionary node.destiny
- Where the retrieved unit address will be stored.
storage.StorageException
java.io.IOException
public static void setPreviousIdNode(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress source) throws storage.StorageException, java.io.IOException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.unitAddress
- The address of the dictionary node.source
- Where the unit address is stored.
storage.StorageException
java.io.IOException
public static void getNextIdNode(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress destiny) throws storage.StorageException, java.io.IOException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.unitAddress
- The address of the dictionary node.destiny
- Where the retrieved unit address will be stored.
storage.StorageException
java.io.IOException
public static void setNextIdNode(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress source) throws storage.StorageException, java.io.IOException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.unitAddress
- The address of the dictionary node.source
- Where the unit address is stored.
storage.StorageException
java.io.IOException
public static void getLeftIdNode(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress destiny) throws storage.StorageException, java.io.IOException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.unitAddress
- The address of the dictionary node.destiny
- Where the retrieved unit address will be stored.
storage.StorageException
java.io.IOException
public static void setLeftIdNode(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress source) throws storage.StorageException, java.io.IOException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.unitAddress
- The address of the dictionary node.source
- Where the unit address is stored.
storage.StorageException
java.io.IOException
public static void getRightIdNode(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress destiny) throws storage.StorageException, java.io.IOException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.unitAddress
- The address of the dictionary node.destiny
- Where the retrieved unit address will be stored.
storage.StorageException
java.io.IOException
public static void setRightIdNode(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress source) throws storage.StorageException, java.io.IOException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.unitAddress
- The address of the dictionary node.source
- Where the unit address is stored.
storage.StorageException
java.io.IOException
public static void getParentIdNode(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress destiny) throws storage.StorageException, java.io.IOException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.unitAddress
- The address of the dictionary node.destiny
- Where the retrieved unit address will be stored.
storage.StorageException
java.io.IOException
public static void setParentIdNode(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress source) throws storage.StorageException, java.io.IOException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.unitAddress
- The address of the dictionary node.source
- Where the unit address is stored.
storage.StorageException
java.io.IOException
public static byte getIdHeight(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress) throws storage.StorageException, java.io.IOException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.unitAddress
- The address of the dictionary node.
storage.StorageException
java.io.IOException
public static void setIdHeight(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, byte source) throws storage.StorageException, java.io.IOException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.unitAddress
- The address of the dictionary node.source
- The height in the tree id order.
storage.StorageException
java.io.IOException
public static void getPreviousNameNode(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress destiny) throws storage.StorageException, java.io.IOException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.unitAddress
- The address of the dictionary node.destiny
- Where the retrieved unit address will be stored.
storage.StorageException
java.io.IOException
public static void setPreviousNameNode(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress source) throws storage.StorageException, java.io.IOException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.unitAddress
- The address of the dictionary node.source
- Where the unit address is stored.
storage.StorageException
java.io.IOException
public static void getNextNameNode(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress destiny) throws storage.StorageException, java.io.IOException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.unitAddress
- The address of the dictionary node.destiny
- Where the retrieved unit address will be stored.
storage.StorageException
java.io.IOException
public static void setNextNameNode(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress source) throws storage.StorageException, java.io.IOException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.unitAddress
- The address of the dictionary node.source
- Where the unit address is stored.
storage.StorageException
java.io.IOException
public static void getLeftNameNode(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress destiny) throws storage.StorageException, java.io.IOException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.unitAddress
- The address of the dictionary node.destiny
- Where the retrieved unit address will be stored.
storage.StorageException
java.io.IOException
public static void setLeftNameNode(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress source) throws storage.StorageException, java.io.IOException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.unitAddress
- The address of the dictionary node.source
- Where the unit address is stored.
storage.StorageException
java.io.IOException
public static void getRightNameNode(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress destiny) throws storage.StorageException, java.io.IOException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.unitAddress
- The address of the dictionary node.destiny
- Where the retrieved unit address will be stored.
storage.StorageException
java.io.IOException
public static void setRightNameNode(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress source) throws storage.StorageException, java.io.IOException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.unitAddress
- The address of the dictionary node.source
- Where the unit address is stored.
storage.StorageException
java.io.IOException
public static void getParentNameNode(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress destiny) throws storage.StorageException, java.io.IOException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.unitAddress
- The address of the dictionary node.destiny
- Where the retrieved unit address will be stored.
storage.StorageException
java.io.IOException
public static void setParentNameNode(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress source) throws storage.StorageException, java.io.IOException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.unitAddress
- The address of the dictionary node.source
- Where the unit address is stored.
storage.StorageException
java.io.IOException
public static byte getNameHeight(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress) throws storage.StorageException, java.io.IOException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.unitAddress
- The address of the dictionary node.
storage.StorageException
java.io.IOException
public static void setNameHeight(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, byte source) throws storage.StorageException, java.io.IOException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.unitAddress
- The address of the dictionary node.source
- The height in the tree name order.
storage.StorageException
java.io.IOException
public static void getId(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, PhysicalID id) throws storage.StorageException, java.io.IOException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.unitAddress
- The address of the dictionary node.id
- Where the id will be stored.
storage.StorageException
java.io.IOException
public static void setId(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, PhysicalID id) throws storage.StorageException, java.io.IOException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.unitAddress
- The address of the dictionary node.id
- Where the id is stored.
storage.StorageException
java.io.IOException
public static void getNameContentExtension(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress destiny) throws storage.StorageException, java.io.IOException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.unitAddress
- The address of the name content extension.destiny
- Where the address will be stored.
storage.StorageException
java.io.IOException
public static void setNameContentExtension(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress source) throws storage.StorageException, java.io.IOException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.unitAddress
- The address of the name content extension.source
- Where the address will is stored.
storage.StorageException
java.io.IOException
public static int getNameSize(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress) throws storage.StorageException, java.io.IOException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.unitAddress
- The address of the dictionary node.
storage.StorageException
java.io.IOException
public static void setNameSize(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, int source) throws storage.StorageException, java.io.IOException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.unitAddress
- The address of the dictionary node.source
- The name's size.
storage.StorageException
java.io.IOException
public static int getNameContent(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, int maxLength, byte[] b, int off) throws storage.StorageException, java.io.IOException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.unitAddress
- The address of the dictionary node.maxLength
- The maximun number of bytes to be got.b
- Where the content will be stored.off
- The begining position of b where the name's content will be stored.
storage.StorageException
java.io.IOException
public static int setNameContent(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, int maxLength, byte[] b, int off) throws storage.StorageException, java.io.IOException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.unitAddress
- The address of the dictionary node.maxLength
- The maximun number of bytes to be got.b
- Where the content is stored.off
- The begining position of b where the name's content is stored.
storage.StorageException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |