Package uk.ac.starlink.table.join
Class RowLink2
- java.lang.Object
-
- uk.ac.starlink.table.join.RowLink
-
- uk.ac.starlink.table.join.RowLink2
-
- All Implemented Interfaces:
java.lang.Comparable<RowLink>
public class RowLink2 extends RowLink
RowLink subclass which specifically contains two items (a pair).As well as standard
RowLinkfunctionality, this object can also contain a 'score', which is an uninterpreted number. Typically this is used to record how good the match represented by a link is. This value is not taken account of in eithercompareTo,equalsorhashCodemethods.- Since:
- 23 Nov 2007
- Author:
- Mark Taylor
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RowRefgetRef(int i)Returns the ith row ref in this ordered sequence of refs.doublegetScore()Returns the score associated with this link.voidsetScore(double score)Sets the score associated with this link.intsize()Returns the number of rows linked by this object.
-
-
-
Method Detail
-
size
public int size()
Description copied from class:RowLinkReturns the number of rows linked by this object.
-
getRef
public RowRef getRef(int i)
Description copied from class:RowLinkReturns the ith row ref in this ordered sequence of refs. The sequence must be as defined byRowRef.compareTo.
-
setScore
public void setScore(double score)
Sets the score associated with this link.- Parameters:
score- new score
-
getScore
public double getScore()
Returns the score associated with this link. If it has not been set explicitly, it will beNaN.- Returns:
- score
-
-