vishnu.model.algebra.algorithms.selection
Class HashIndexEqualitySelectionAlgorithm

java.lang.Object
  extended by vishnu.model.algebra.algorithms.selection.AbstractSelectionAlgorithm
      extended by vishnu.model.algebra.algorithms.selection.HashIndexEqualitySelectionAlgorithm
All Implemented Interfaces:
Algorithm, UnaryAlgorithm

public class HashIndexEqualitySelectionAlgorithm
extends AbstractSelectionAlgorithm
implements UnaryAlgorithm

Debe ser del tipo atr1=v1 AND atr2=v2 AND atr3=v3 ...

Author:
Mariano Tepper
 

Field Summary
 
Fields inherited from class vishnu.model.algebra.algorithms.selection.AbstractSelectionAlgorithm
canceled, conditions, r
 
Constructor Summary
HashIndexEqualitySelectionAlgorithm()
           
 
Method Summary
 boolean canBePerformed()
          Indica si el algoritmo puede ser ejecutado sobre la relacion definida.
 Algorithm clone()
          Clona el algoritmo.
protected  void copyFilteredTable(Table destTable, Table sourceTable, Session session)
           
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 void innerTable(TableContext c)
          Setea la tabla interior del algoritmo.
 void perform(Relation.Context c)
          Ejecuta el algoritmo con el contexto dado
 java.lang.String toString()
           
 
Methods inherited from class vishnu.model.algebra.algorithms.selection.AbstractSelectionAlgorithm
attach, cancel, isCanceled
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface vishnu.model.algebra.algorithms.Algorithm
attach, cancel, isCanceled
 

Constructor Detail

HashIndexEqualitySelectionAlgorithm

public HashIndexEqualitySelectionAlgorithm()
Method Detail

perform

public void perform(Relation.Context c)
Description copied from interface: Algorithm
Ejecuta el algoritmo con el contexto dado

Specified by:
perform in interface Algorithm
Overrides:
perform in class AbstractSelectionAlgorithm
Parameters:
c - - el contexto de ejecucion.

copyFilteredTable

protected void copyFilteredTable(Table destTable,
                                 Table sourceTable,
                                 Session session)
Specified by:
copyFilteredTable in class AbstractSelectionAlgorithm

innerTable

public void innerTable(TableContext c)
Description copied from interface: UnaryAlgorithm
Setea la tabla interior del algoritmo.

Specified by:
innerTable in interface UnaryAlgorithm
Overrides:
innerTable in class AbstractSelectionAlgorithm
Parameters:
c - - la tabla interior del algoritmo.

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 AbstractSelectionAlgorithm
Returns:
true si puede ser ejecutado, false si no.

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

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 AbstractSelectionAlgorithm