Package com.yahoo.search.dispatch
Class LeanHit
java.lang.Object
com.yahoo.search.dispatch.LeanHit
- All Implemented Interfaces:
Comparable<LeanHit>
- Author:
- baldersheim
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addMatchFeatures
(com.yahoo.data.access.Inspector features) static int
compareData
(byte[] left, byte[] right) int
int
byte[]
getGid()
int
double
byte[]
boolean
boolean
-
Constructor Details
-
LeanHit
public LeanHit(byte[] gid, int partId, int distributionKey, double relevance) -
LeanHit
public LeanHit(byte[] gid, int partId, int distributionKey, double relevance, byte[] sortData)
-
-
Method Details
-
getRelevance
public double getRelevance() -
getGid
public byte[] getGid() -
getSortData
public byte[] getSortData() -
hasSortData
public boolean hasSortData() -
getPartId
public int getPartId() -
getDistributionKey
public int getDistributionKey() -
getMatchFeatures
-
hasMatchFeatures
public boolean hasMatchFeatures() -
addMatchFeatures
public void addMatchFeatures(com.yahoo.data.access.Inspector features) -
compareTo
- Specified by:
compareTo
in interfaceComparable<LeanHit>
-
compareData
public static int compareData(byte[] left, byte[] right)
-