Package com.biglybt.core.metasearch
Class Result
java.lang.Object
com.biglybt.core.metasearch.Result
- All Implemented Interfaces:
FilterableResult
- Direct Known Subclasses:
PluginResult
,WebResult
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
adjustLink
(String link) static void
adjustRelativeTerms
(Map map) protected float
applyRankBias
(float _rank) abstract float
abstract Date
abstract String
abstract String
abstract int
abstract String
abstract String
abstract String
abstract String
abstract String
abstract String
getHash()
abstract String
getName()
abstract int
abstract int
abstract int
abstract int
abstract String
abstract Date
float
getRank()
abstract String
abstract long
getSize()
long
getTime()
abstract String
abstract String
getUID()
abstract int
getVotes()
abstract int
protected String
guessContentTypeFromCategory
(String category) abstract boolean
static String
removeHTMLTags
(String input) abstract void
setCategory
(String category) abstract void
setContentType
(String contentType) toString()
protected static String
unescapeEntities
(String input) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.biglybt.core.metasearch.FilterableResult
getTags
-
Field Details
-
HTML_TAGS
- See Also:
-
DUPLICATE_SPACES
- See Also:
-
engine
-
time_created_secs
private final long time_created_secs
-
-
Constructor Details
-
Result
-
-
Method Details
-
getPublishedDate
-
getAssetDate
-
getCategory
- Specified by:
getCategory
in interfaceFilterableResult
-
setCategory
-
getContentType
-
setContentType
-
getName
- Specified by:
getName
in interfaceFilterableResult
-
getSize
public abstract long getSize()- Specified by:
getSize
in interfaceFilterableResult
-
getNbPeers
public abstract int getNbPeers()- Specified by:
getNbPeers
in interfaceFilterableResult
-
getNbSeeds
public abstract int getNbSeeds()- Specified by:
getNbSeeds
in interfaceFilterableResult
-
getNbSuperSeeds
public abstract int getNbSuperSeeds() -
getNbCompleted
public abstract int getNbCompleted() -
getComments
public abstract int getComments() -
getVotes
public abstract int getVotes() -
getVotesDown
public abstract int getVotesDown() -
isPrivate
public abstract boolean isPrivate() -
getDRMKey
-
getDownloadLink
-
getTorrentLink
-
getDownloadButtonLink
-
getCDPLink
-
getPlayLink
-
getAccuracy
public abstract float getAccuracy() -
getSearchQuery
-
getUID
-
getHash
-
getDescription
-
getEngine
-
toString
-
getRank
public float getRank()- Returns:
- a value between 0 and 1 representing the rank of the result
-
applyRankBias
protected float applyRankBias(float _rank) -
toJSONMap
-
guessContentTypeFromCategory
-
getTime
public long getTime()- Specified by:
getTime
in interfaceFilterableResult
-
adjustLink
-
adjustRelativeTerms
-
removeHTMLTags
-
unescapeEntities
-