it.unimi.di.mg4j.query
Class ResultItem

java.lang.Object
  extended by it.unimi.di.mg4j.query.BrowseItem
      extended by it.unimi.di.mg4j.query.ResultItem

public class ResultItem
extends BrowseItem

An instance of this class is used to pack the results gathered by QueryServlet in such a way that they are easily accessible from the Velocity Template Language.

Since:
0.9.2
Author:
Sebastiano Vigna

Field Summary
 int doc
          The document index of this result.
 double score
          The score of this result.
 
Fields inherited from class it.unimi.di.mg4j.query.BrowseItem
alt, text, title, uri
 
Constructor Summary
ResultItem(int doc, double score)
           
 
Method Summary
 int doc()
           
 double score()
           
 String score(int digits)
           
 String toString()
           
 
Methods inherited from class it.unimi.di.mg4j.query.BrowseItem
alt, text, title, uri
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

doc

public final int doc
The document index of this result.


score

public final double score
The score of this result.

Constructor Detail

ResultItem

public ResultItem(int doc,
                  double score)
Method Detail

doc

public int doc()

score

public final double score()

score

public final String score(int digits)

toString

public String toString()
Overrides:
toString in class BrowseItem