iitb.con.ds
Class RelationElement

java.lang.Object
  extended by iitb.con.ds.RelationElement
All Implemented Interfaces:
java.lang.Comparable<RelationElement>

public class RelationElement
extends java.lang.Object
implements java.lang.Comparable<RelationElement>

RelationElement represents the left entity id, relation id, and right entity id tuple of the relation.


Field Summary
 short cluterId
           
 int leftId
          Left entity id
 int relId
          Relation id
 int rightId
          Right entity id
 
Constructor Summary
RelationElement()
           
RelationElement(int leftId, int rightId, int relId)
           
 
Method Summary
 int compareTo(RelationElement re)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cluterId

public short cluterId

leftId

public int leftId
Left entity id


relId

public int relId
Relation id


rightId

public int rightId
Right entity id

Constructor Detail

RelationElement

public RelationElement()

RelationElement

public RelationElement(int leftId,
                       int rightId,
                       int relId)
Method Detail

compareTo

public int compareTo(RelationElement re)
Specified by:
compareTo in interface java.lang.Comparable<RelationElement>