Package it.unimi.di.big.mg4j.query
Class ResultItem
- java.lang.Object
-
- it.unimi.di.big.mg4j.query.BrowseItem
-
- it.unimi.di.big.mg4j.query.ResultItem
-
public class ResultItem extends BrowseItem
An instance of this class is used to pack the results gathered byQueryServlet
in such a way that they are easily accessible from the Velocity Template Language.- Since:
- 0.9.2
- Author:
- Sebastiano Vigna
-
-
Constructor Summary
Constructors Constructor Description ResultItem(long doc, double score)
-
-
-
Method Detail
-
doc
public long doc()
-
score
public final double score()
-
score
public final String score(int digits)
-
toString
public String toString()
- Overrides:
toString
in classBrowseItem
-
-