vishnu.model.algebra.algorithms.join
Class SortMergeJoinAlgorithm

java.lang.Object
  extended by vishnu.model.algebra.algorithms.join.AbstractJoinAlgorithm
      extended by vishnu.model.algebra.algorithms.join.SortMergeJoinAlgorithm
All Implemented Interfaces:
Algorithm, BinaryAlgorithm

public class SortMergeJoinAlgorithm
extends AbstractJoinAlgorithm

Debe ser del tipo tabla1.atrA = tabla2.atrB

Author:
Mariano Tepper
 

Field Summary
 
Fields inherited from class vishnu.model.algebra.algorithms.join.AbstractJoinAlgorithm
canceled, conditions, l, r
 
Constructor Summary
SortMergeJoinAlgorithm()
           
 
Method Summary
 boolean canBePerformed()
          Indica si el algoritmo puede ser ejecutado sobre la relacion definida.
 Algorithm clone()
          Clona el algoritmo.
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
protected  void performProduct(TableContext left, TableContext right, Table destTable, Session session)
          Resuelve la junta
 java.lang.String toString()
           
 
Methods inherited from class vishnu.model.algebra.algorithms.join.AbstractJoinAlgorithm
attach, cancel, isCanceled, leftTable, perform, rightTable
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SortMergeJoinAlgorithm

public SortMergeJoinAlgorithm()
Method Detail

performProduct

protected void performProduct(TableContext left,
                              TableContext right,
                              Table destTable,
                              Session session)
Resuelve la junta

Specified by:
performProduct in class AbstractJoinAlgorithm

canBePerformed

public boolean canBePerformed()
Description copied from interface: Algorithm
Indica si el algoritmo puede ser ejecutado sobre la relacion definida.

Specified by:
canBePerformed in interface Algorithm
Specified by:
canBePerformed in class AbstractJoinAlgorithm
Returns:
true si puede ser ejecutado, false si no.

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

clone

public Algorithm clone()
Description copied from interface: Algorithm
Clona el algoritmo.

Specified by:
clone in interface Algorithm
Specified by:
clone in class AbstractJoinAlgorithm