|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.unidu.is.retrieval.ProbDoc
de.unidu.is.retrieval.hyrex.Path
Represents a query result from HyREX. A path consists of a weight, a document identifier, and a path. Here, the document identifier is represented as an integer, the weight is a double, and the path is a string.
| Field Summary | |
protected java.lang.String |
path
The path associated with the document. |
| Fields inherited from class de.unidu.is.retrieval.ProbDoc |
docID, weight |
| Constructor Summary | |
Path()
Creates a new, empty instance. |
|
Path(java.lang.String query_result)
Creates a new instance from a HyREX string. |
|
Path(java.lang.String docID,
java.lang.String path,
double weight)
Creates a new instance. |
|
| Method Summary | |
java.lang.String |
getPath()
Returns the path. |
java.lang.String |
path()
Deprecated. Use getPath()instead. |
void |
setPath(java.lang.String path)
Sets the path. |
java.lang.String |
toString()
Returns a string representation of this object. |
| Methods inherited from class de.unidu.is.retrieval.ProbDoc |
compareTo, equals, getDocID, getWeight, hashCode, setDocID, setWeight |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.lang.String path
| Constructor Detail |
public Path()
public Path(java.lang.String docID,
java.lang.String path,
double weight)
docID - document IDpath - document pathweight - document weightpublic Path(java.lang.String query_result)
The argument string has the following format:
5 0.42 4711 /foo[1]/bar[2]
This is a string of four tab-separated fields. The first field (5) is an index number (5 means the fifth item from the ranking list). The second field (0.42) gives the weight and is a double between 0 and 1. The third field (4711) is an integer and gives the document identifier. The fourth field (/foo[1]/bar[2]) is a path specifying an XML node.
query_result - argument string| Method Detail |
public java.lang.String path()
getPath()instead.
public java.lang.String toString()
toString in class ProbDocpublic java.lang.String getPath()
public void setPath(java.lang.String path)
path - path to set.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||