vishnu.model.algebra.algorithms.join
Class HashJoinAlgorithm

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

public class HashJoinAlgorithm
extends AbstractJoinAlgorithm
implements BinaryAlgorithm

Author:
Mariano Tepper
 

Field Summary
 
Fields inherited from class vishnu.model.algebra.algorithms.join.AbstractJoinAlgorithm
canceled, conditions, l, r
 
Constructor Summary
HashJoinAlgorithm()
           
 
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 s)
          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
 
Methods inherited from interface vishnu.model.algebra.algorithms.BinaryAlgorithm
leftTable, rightTable
 
Methods inherited from interface vishnu.model.algebra.algorithms.Algorithm
attach, cancel, isCanceled, perform
 

Constructor Detail

HashJoinAlgorithm

public HashJoinAlgorithm()
Method Detail

performProduct

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

Specified by:
performProduct in class AbstractJoinAlgorithm

equals

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

hashCode

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

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.

toString

public java.lang.String toString()
Overrides:
toString 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