Package com.yahoo.search.dispatch
Class LeanHit
java.lang.Object
com.yahoo.search.dispatch.LeanHit
- All Implemented Interfaces:
Comparable<LeanHit>
- Author:
- baldersheim
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMatchFeatures(com.yahoo.data.access.Inspector features) static intcompareData(byte[] left, byte[] right) intintbyte[]getGid()intdoublebyte[]booleanboolean
-
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:
compareToin interfaceComparable<LeanHit>
-
compareData
public static int compareData(byte[] left, byte[] right)
-