de.fuberlin.wiwiss.d2rq.algebra
Class Join

java.lang.Object
  extended by de.fuberlin.wiwiss.d2rq.algebra.Join

public class Join
extends Object

Represents an SQL join between two tables, spanning one or more columns.

Author:
Richard Cyganiak (richard@cyganiak.de)

Field Summary
static int DIRECTION_LEFT
           
static int DIRECTION_RIGHT
           
static int DIRECTION_UNDIRECTED
           
static String[] joinOperators
           
 
Constructor Summary
Join(Attribute oneSide, Attribute otherSide, int joinDirection)
           
Join(List<Attribute> oneSideAttributes, List<Attribute> otherSideAttributes, int joinDirection)
           
 
Method Summary
 List<Attribute> attributes1()
           
 List<Attribute> attributes2()
           
 boolean containsColumn(Attribute column)
           
 Attribute equalAttribute(Attribute column)
           
 boolean equals(Object otherObject)
           
 int hashCode()
           
 boolean isSameTable()
           
 int joinDirection()
           
 Join renameColumns(ColumnRenamer columnRenamer)
           
 RelationName table1()
           
 RelationName table2()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DIRECTION_UNDIRECTED

public static final int DIRECTION_UNDIRECTED
See Also:
Constant Field Values

DIRECTION_LEFT

public static final int DIRECTION_LEFT
See Also:
Constant Field Values

DIRECTION_RIGHT

public static final int DIRECTION_RIGHT
See Also:
Constant Field Values

joinOperators

public static final String[] joinOperators
Constructor Detail

Join

public Join(Attribute oneSide,
            Attribute otherSide,
            int joinDirection)

Join

public Join(List<Attribute> oneSideAttributes,
            List<Attribute> otherSideAttributes,
            int joinDirection)
Method Detail

isSameTable

public boolean isSameTable()

containsColumn

public boolean containsColumn(Attribute column)

table1

public RelationName table1()

table2

public RelationName table2()

attributes1

public List<Attribute> attributes1()

attributes2

public List<Attribute> attributes2()

joinDirection

public int joinDirection()

equalAttribute

public Attribute equalAttribute(Attribute column)

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object otherObject)
Overrides:
equals in class Object

renameColumns

public Join renameColumns(ColumnRenamer columnRenamer)