
Simple (effective) lookups can be done on this storage. Implemeted as set of containers with associative access.
Definition at line 19 of file RelationStorage.java.
Public Member Functions | |
| RelationStorage () | |
| RelationStorage (RelationStorage ref) | |
| Deep copy constructor. | |
| RelationStorage | clone () throws CloneNotSupportedException |
| Deep clone method. | |
| void | add (Relation relation) |
| Add relation to storage. | |
| void | add (Iterable< Relation > relationList) |
| Add all relation to storage from given container. | |
| IContainer< Relation > | getAllFrom (URL from) |
| Return container of relations, which has desired source URL. | |
| IContainer< Relation > | getAllTo (URL to) |
| Return container of relations, which has desired target URL. | |
| IContainer< Relation > | getAllIncidents (URL url) |
| Lookup for all relations incidenting with desired url. | |
| IContainer< Relation > | getAllOfEdgeType (String edgeType) |
| Lookup for all relations of desired type. | |
| Iterator< Relation > | iterator () |
| Iterable< URL > | getUrls () |
| |
| Iterable< URL > | getUrls (String host) |
| Lookup for URLs belonging to desired host. | |
| Iterable< String > | getHosts () |
| |
| Statistics | getStatistics () |
| |
Static Public Member Functions | |
| static RelationStorage | fromRelationList (RelationList relationList) |
| Create storage from list of Relation objects. | |
| static String | urlToHost (URL url) |
| Convert URL address to host name. | |
| RelationStorage | ( | ) |
Definition at line 50 of file RelationStorage.java.
Referenced by RelationStorage.clone(), and RelationStorage.fromRelationList().

| RelationStorage | ( | RelationStorage | ref | ) |
Deep copy constructor.
| ref | Other storage object to copy from. |
Definition at line 63 of file RelationStorage.java.
References RelationStorage.all, RelationStorage.edgeTypeMap, RelationStorage.fromMap, RelationStorage.toMap, RelationStorage.urlSet, and RelationStorage.urlToHostMap.
| static RelationStorage fromRelationList | ( | RelationList | relationList | ) | [static] |
Create storage from list of Relation objects.
| relationList | List of objects to create storage from. |
Definition at line 35 of file RelationStorage.java.
References RelationStorage.add(), and RelationStorage.RelationStorage().

| static String urlToHost | ( | URL | url | ) | [static] |
Convert URL address to host name.
| url | URL adderess to convert. |
Definition at line 46 of file RelationStorage.java.
| RelationStorage clone | ( | ) | throws CloneNotSupportedException |
Deep clone method.
Definition at line 75 of file RelationStorage.java.
References RelationStorage.RelationStorage().

| void add | ( | Relation | relation | ) |
Add relation to storage.
| relation | Relation object to add to storage. |
Definition at line 83 of file RelationStorage.java.
References RelationSet.add().
Referenced by RelationStorage.fromRelationList(), and GraphView.handleResponse().


| void add | ( | Iterable< Relation > | relationList | ) |
Add all relation to storage from given container.
| relationList | Container to add relations from. |
Definition at line 96 of file RelationStorage.java.
| IContainer<Relation> getAllFrom | ( | URL | from | ) |
Return container of relations, which has desired source URL.
| from | Source URL of desired set of relations. |
Definition at line 106 of file RelationStorage.java.
Referenced by RelationStorage.getAllIncidents().

| IContainer<Relation> getAllTo | ( | URL | to | ) |
Return container of relations, which has desired target URL.
| to | Target URL of desired set of relations. |
Definition at line 115 of file RelationStorage.java.
Referenced by RelationStorage.getAllIncidents().

| IContainer<Relation> getAllIncidents | ( | URL | url | ) |
Lookup for all relations incidenting with desired url.
| url | Source/target URL of desired set of relations. |
Definition at line 124 of file RelationStorage.java.
References RelationList.add(), RelationStorage.getAllFrom(), and RelationStorage.getAllTo().

| IContainer<Relation> getAllOfEdgeType | ( | String | edgeType | ) |
Lookup for all relations of desired type.
| edgeType | Type of desired set of relations. |
Definition at line 136 of file RelationStorage.java.
| Iterator<Relation> iterator | ( | ) |
Definition at line 140 of file RelationStorage.java.
References RelationSet.iterator().

| Iterable<URL> getUrls | ( | ) |
Definition at line 147 of file RelationStorage.java.
| Iterable<URL> getUrls | ( | String | host | ) |
Lookup for URLs belonging to desired host.
| host | Host name to look for URLs. |
Definition at line 156 of file RelationStorage.java.
| Iterable<String> getHosts | ( | ) |
Definition at line 163 of file RelationStorage.java.
Referenced by GraphView.handleResponse().

| Statistics getStatistics | ( | ) |
Definition at line 171 of file RelationStorage.java.
References RelationSet.size(), and UrlSet.size().

1.5.4