|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectDbStorage.manager.LabeledSsdCollectionManager
This class manages the content of a collection of labeled semistructured data. This collection is implemented using 4 data structures combined in one, 2 AA-trees and 2 double linked list are used, for ordering the collection by identificator and label.
Constructor Summary | |
LabeledSsdCollectionManager()
|
Method Summary | |
static boolean |
contains(DbStorageManager dbsm,
long transactionNumber,
PhysicalID id,
PhysicalLabeledSSD lssd)
Checks if a specified labeled semistructured datum belongs to the collection. |
static boolean |
contains(DbStorageManager dbsm,
long transactionNumber,
PhysicalID id,
java.lang.String lssdLabel,
PhysicalID lssdID)
Checks if a specified labeled semistructured datum belongs to the collection. |
static boolean |
containsID(DbStorageManager dbsm,
long transactionNumber,
PhysicalID id,
PhysicalID matchID)
Checks if a specified identifier is in some labeled semistructured datum in the collection. |
static boolean |
containsLabel(DbStorageManager dbsm,
long transactionNumber,
PhysicalID id,
java.lang.String matchLabel)
Checks if a specified labeled is in some labeled semistructured datum in the collection. |
static void |
delete(DbStorageManager dbsm,
long transactionNumber,
PhysicalID id,
PhysicalLabeledSSD lssd)
Deletes a specified labeled semistructured datum from the collection. |
static void |
delete(DbStorageManager dbsm,
long transactionNumber,
PhysicalID id,
java.lang.String lssdLabel,
PhysicalID lssdID)
Deletes a specified labeled semistructured datum from the collection. |
static void |
deleteID(DbStorageManager dbsm,
long transactionNumber,
PhysicalID id,
PhysicalID deletedID)
Deletes a specified labeled semistructured datum from the collection. |
static void |
deleteLabel(DbStorageManager dbsm,
long transactionNumber,
PhysicalID id,
java.lang.String deletedLabel)
Deletes a specified labeled semistructured datum from the collection. |
static void |
getFirstWithID(DbStorageManager dbsm,
long transactionNumber,
PhysicalID id,
PhysicalID matchID,
DbUnitAddress destiny)
Finds the first node in the collection with the specified identifier. |
static void |
getFirstWithLabel(DbStorageManager dbsm,
long transactionNumber,
PhysicalID id,
java.lang.String matchLabel,
DbUnitAddress destiny)
Finds the first node in the collection with the specified label. |
static java.lang.String |
getLabelFromNode(DbStorageManager dbsm,
long transactionNumber,
DbUnitAddress nodeAddress)
Returns the label of a specified node of the collection. |
static PhysicalLabeledSSD |
getPhysicalLabeledSsdFromNode(DbStorageManager dbsm,
long transactionNumber,
DbUnitAddress nodeAddress)
Returns the labeled semistructured datum of a specified node of the collection. |
static void |
insert(DbStorageManager dbsm,
long transactionNumber,
PhysicalID id,
PhysicalLabeledSSD lssd)
Inserts a specified labeled semistructured datum to the collection. |
static void |
insert(DbStorageManager dbsm,
long transactionNumber,
PhysicalID id,
java.lang.String lssdLabel,
PhysicalID lssdID)
Inserts a specified labeled semistructured datum to the collection. |
static void |
remove(DbStorageManager dbsm,
long transactionNumber,
PhysicalID id,
DbUnitAddress node)
Deletes a specified node from the collection. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LabeledSsdCollectionManager()
Method Detail |
public static java.lang.String getLabelFromNode(DbStorageManager dbsm, long transactionNumber, DbUnitAddress nodeAddress) throws storage.StorageException, java.io.IOException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.nodeAddress
- The addres of the node in the CONTENT segment.
String
object.
storage.StorageException
java.io.IOException
public static PhysicalLabeledSSD getPhysicalLabeledSsdFromNode(DbStorageManager dbsm, long transactionNumber, DbUnitAddress nodeAddress) throws storage.StorageException, java.io.IOException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.nodeAddress
- The addres of the node in the CONTENT segment.
PhysicalLabeledSSD onject.
- Throws:
storage.StorageException
java.io.IOException
public static void remove(DbStorageManager dbsm, long transactionNumber, PhysicalID id, DbUnitAddress node) throws storage.StorageException, java.io.IOException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.id
- The identifier of the non primitive datum that represents the collection.node
- The node to delete.
storage.StorageException
java.io.IOException
public static boolean contains(DbStorageManager dbsm, long transactionNumber, PhysicalID id, PhysicalLabeledSSD lssd) throws storage.StorageException, java.io.IOException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.id
- The identifier of the non primitive datum that represents the collection.lssd
- The labeled semistructured datum.
true
if the labeled semistructured datum is in the collection,
false
otherwise.
storage.StorageException
java.io.IOException
public static boolean contains(DbStorageManager dbsm, long transactionNumber, PhysicalID id, java.lang.String lssdLabel, PhysicalID lssdID) throws storage.StorageException, java.io.IOException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.id
- The identifier of the non primitive datum that represents the collection.lssdLabel
- The label of the labeled semistructured datum.lssdID
- The identifier of the labeled semistructured datum.
true
if the labeled semistructured datum is in the collection,
false
otherwise.
storage.StorageException
java.io.IOException
public static void insert(DbStorageManager dbsm, long transactionNumber, PhysicalID id, PhysicalLabeledSSD lssd) throws storage.StorageException, java.io.IOException, UnavailableUnitException, AlreadyExistingException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.id
- The identifier of the non primitive datum that represents the collection.lssd
- The labeled semistructured datum.
storage.StorageException
java.io.IOException
UnavailableUnitException
AlreadyExistingException
public static void insert(DbStorageManager dbsm, long transactionNumber, PhysicalID id, java.lang.String lssdLabel, PhysicalID lssdID) throws storage.StorageException, java.io.IOException, UnavailableUnitException, AlreadyExistingException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.id
- The identifier of the non primitive datum that represents the collection.lssdLabel
- The label of the labeled semistructured datum.lssdID
- The identifier of the labeled semistructured datum.
storage.StorageException
java.io.IOException
UnavailableUnitException
AlreadyExistingException
public static void getFirstWithID(DbStorageManager dbsm, long transactionNumber, PhysicalID id, PhysicalID matchID, 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.id
- The identifier of the non primitive datum that represents the collection.matchID
- The identifier to find.destiny
- Where the node's address is stored, it will be a null address if the
identifier is not found.
storage.StorageException
java.io.IOException
public static boolean containsID(DbStorageManager dbsm, long transactionNumber, PhysicalID id, PhysicalID matchID) throws storage.StorageException, java.io.IOException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.id
- The identifier of the non primitive datum that represents the collection.matchID
- The identifier to find.
true
if the identifier is in the collection,
false
otherwise.
storage.StorageException
java.io.IOException
public static void getFirstWithLabel(DbStorageManager dbsm, long transactionNumber, PhysicalID id, java.lang.String matchLabel, 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.id
- The identifier of the non primitive datum that represents the collection.matchLabel
- The label to find.destiny
- Where the node's address is stored, it will be a null address if the
identifier is not found.
storage.StorageException
java.io.IOException
public static boolean containsLabel(DbStorageManager dbsm, long transactionNumber, PhysicalID id, java.lang.String matchLabel) throws storage.StorageException, java.io.IOException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.id
- The identifier of the non primitive datum that represents the collection.matchLabel
- The labe to find.
true
if the label is in the collection,
false
otherwise.
storage.StorageException
java.io.IOException
public static void delete(DbStorageManager dbsm, long transactionNumber, PhysicalID id, PhysicalLabeledSSD lssd) throws storage.StorageException, java.io.IOException, NotExistingException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.id
- The identifier of the non primitive datum that represents the collection.lssd
- The labeled semistructured datum.
storage.StorageException
java.io.IOException
NotExistingException
public static void delete(DbStorageManager dbsm, long transactionNumber, PhysicalID id, java.lang.String lssdLabel, PhysicalID lssdID) throws storage.StorageException, java.io.IOException, NotExistingException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.id
- The identifier of the non primitive datum that represents the collection.lssdLabel
- The label of the labeled semistructured datum.lssdID
- The identifier of the labeled semistructured datum.
storage.StorageException
java.io.IOException
NotExistingException
public static void deleteID(DbStorageManager dbsm, long transactionNumber, PhysicalID id, PhysicalID deletedID) throws storage.StorageException, java.io.IOException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.id
- The identifier of the non primitive datum that represents the collection.deletedID
- The identifier of the labeled semistructured data to delete.
storage.StorageException
java.io.IOException
public static void deleteLabel(DbStorageManager dbsm, long transactionNumber, PhysicalID id, java.lang.String deletedLabel) throws storage.StorageException, java.io.IOException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.id
- The identifier of the non primitive datum that represents the collection.deletedLabel
- The label of the labeled semistructured data to delete.
storage.StorageException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |