|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object vishnu.model.algebra.Renaming
public class Renaming
Representa el renombre de las columnas de una relacion del algebra relacional.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface vishnu.model.algebra.Relation |
---|
Relation.Context, Relation.ContextNotSelectedException |
Constructor Summary | |
---|---|
Renaming(Relation r,
java.util.List<java.lang.String> from,
java.util.List<java.lang.String> to)
Construye una relacion de renombre sobre la relacion r con los renombre de las columnas en la lista from a los nombres en la lista to. |
Method Summary | |
---|---|
Algorithm |
algorithm()
Devuelve el algoritmo designado para ejecutar esta relacion. |
void |
algorithm(Algorithm a)
Setea el algoritmo para ejecutar esta relacion. |
java.lang.Object |
clone()
Clona la relacion. |
boolean |
equals(java.lang.Object o)
|
java.util.List<java.lang.String> |
getFrom()
|
java.util.List<java.lang.String> |
getTo()
|
boolean |
hasChanged()
Indica si se realizaro alguna modifiaccion en la relacion. |
int |
hashCode()
|
void |
perform(Relation.Context c)
Ejecuta la relacion sobre el contexto dado (el contexto permite asignar la tabla de resultado). |
Relation |
relation()
Devuelve la relacion de interior. |
void |
relation(Relation inner)
Setea la relacion interior. |
Relation |
renamedRelation()
|
void |
setChanged()
Pone en true el flag de cambios de la relacion. |
void |
setContext(UserContext context)
Setea el esquema de la relacion. |
void |
setFrom(java.util.List<java.lang.String> from)
|
void |
setTo(java.util.List<java.lang.String> to)
|
TableSignature |
signature()
Devuelve la signautra de la relacion. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Renaming(Relation r, java.util.List<java.lang.String> from, java.util.List<java.lang.String> to)
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public Relation renamedRelation()
public void perform(Relation.Context c)
Relation
perform
in interface Relation
c
- - el contexto de ejecución de la relacion.public boolean hasChanged()
Relation
hasChanged
in interface Relation
public void setChanged()
Relation
setChanged
in interface Relation
public TableSignature signature() throws Relation.ContextNotSelectedException
Relation
signature
in interface Relation
Relation.ContextNotSelectedException
public Algorithm algorithm()
Relation
algorithm
in interface Relation
public void algorithm(Algorithm a)
Relation
algorithm
in interface Relation
a
- - el algoritmo co el que se ejecutara la relacion.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.util.List<java.lang.String> getFrom()
public void setFrom(java.util.List<java.lang.String> from)
public java.util.List<java.lang.String> getTo()
public void setTo(java.util.List<java.lang.String> to)
public Relation relation()
UnaryRelation
relation
in interface UnaryRelation
public void relation(Relation inner)
UnaryRelation
relation
in interface UnaryRelation
inner
- - la nueva realcion interior.public java.lang.Object clone()
UnaryRelation
clone
in interface UnaryRelation
clone
in class java.lang.Object
public void setContext(UserContext context)
Relation
setContext
in interface Relation
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |