com.primus.searchstudio
Class RelatedStatement

java.lang.Object
  extended by com.primus.searchstudio.RelatedStatement
All Implemented Interfaces:
java.io.Serializable

public class RelatedStatement
extends java.lang.Object
implements java.io.Serializable

Search result value object.

See Also:
Serialized Form

Constructor Summary
RelatedStatement(int count, double score, java.lang.String text)
           
 
Method Summary
 java.lang.String getCount()
           
 int getPopularity()
          Allows sorting of RelatedStatement instances by score.
 java.lang.String getScoreAsString()
           
 java.lang.String getText()
           
 void setPopularity(int p)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelatedStatement

public RelatedStatement(int count,
                        double score,
                        java.lang.String text)
Method Detail

getCount

public java.lang.String getCount()

getScoreAsString

public java.lang.String getScoreAsString()

getText

public java.lang.String getText()

getPopularity

public int getPopularity()
Allows sorting of RelatedStatement instances by score. This is just a utility function--the results collater/merger facilities are much more capable.


setPopularity

public void setPopularity(int p)