com.aelitis.azureus.core.metasearch
Class Result
java.lang.Object
com.aelitis.azureus.core.metasearch.Result
- Direct Known Subclasses:
- PluginResult, WebResult
public abstract class Result
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Result
protected Result(Engine _engine)
getPublishedDate
public abstract java.util.Date getPublishedDate()
getCategory
public abstract java.lang.String getCategory()
setCategory
public abstract void setCategory(java.lang.String category)
getContentType
public abstract java.lang.String getContentType()
setContentType
public abstract void setContentType(java.lang.String contentType)
getName
public abstract java.lang.String getName()
getSize
public abstract long getSize()
getNbPeers
public abstract int getNbPeers()
getNbSeeds
public abstract int getNbSeeds()
getNbSuperSeeds
public abstract int getNbSuperSeeds()
getComments
public abstract int getComments()
getVotes
public abstract int getVotes()
getVotesDown
public abstract int getVotesDown()
isPrivate
public abstract boolean isPrivate()
getDRMKey
public abstract java.lang.String getDRMKey()
getDownloadLink
public abstract java.lang.String getDownloadLink()
getTorrentLink
public abstract java.lang.String getTorrentLink()
getDownloadButtonLink
public abstract java.lang.String getDownloadButtonLink()
getCDPLink
public abstract java.lang.String getCDPLink()
getPlayLink
public abstract java.lang.String getPlayLink()
getAccuracy
public abstract float getAccuracy()
getSearchQuery
public abstract java.lang.String getSearchQuery()
getUID
public abstract java.lang.String getUID()
getHash
public abstract java.lang.String getHash()
getEngine
public Engine getEngine()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getRank
public float getRank()
- Returns:
- a value between 0 and 1 representing the rank of the result
applyRankBias
protected float applyRankBias(float _rank)
toJSONMap
public java.util.Map toJSONMap()
guessContentTypeFromCategory
protected java.lang.String guessContentTypeFromCategory(java.lang.String category)
adjustLink
public static java.lang.String adjustLink(java.lang.String link)
adjustRelativeTerms
public static void adjustRelativeTerms(java.util.Map map)
removeHTMLTags
protected static final java.lang.String removeHTMLTags(java.lang.String input)
unescapeEntities
protected static final java.lang.String unescapeEntities(java.lang.String input)