@Test public void testNaN2negativeInfinity() { LeanHit nan = new LeanHit(gidA, 0, 0, Double.NaN); assertFalse(Double.isNaN(nan.getRelevance())); assertTrue(Double.isInfinite(nan.getRelevance())); assertEquals(Double.NEGATIVE_INFINITY, nan.getRelevance(), DELTA); }
public double getRelevance() { return relevance; }
LeanHit implements Comparable<LeanHit> { public double getRelevance() { return relevance; } }
LeanHit implements Comparable<LeanHit> { public double getRelevance() { return relevance; } LeanHit(byte [] gid, int partId, int distributionKey, double relevance);  LeanHit(byte [] gid, int partId, int distributionKey, double relevance, byte [] sortData); }
LeanHit implements Comparable<LeanHit> { public double getRelevance() { return relevance; } LeanHit(byte [] gid, int partId, int distributionKey, double relevance);  LeanHit(byte [] gid, int partId, int distributionKey, double relevance, byte [] sortData); double getRelevance(); byte [] getGid(); byte [] getSortData(); boolean hasSortData(); int getPartId(); int getDistributionKey(); @Override int compareTo(LeanHit o); }
LeanHit implements Comparable<LeanHit> { public double getRelevance() { return relevance; } LeanHit(byte [] gid, int partId, int distributionKey, double relevance);  LeanHit(byte [] gid, int partId, int distributionKey, double relevance, byte [] sortData); double getRelevance(); byte [] getGid(); byte [] getSortData(); boolean hasSortData(); int getPartId(); int getDistributionKey(); @Override int compareTo(LeanHit o);  }