|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object vishnu.model.algebra.AbstractUnaryRelation
public abstract class AbstractUnaryRelation
Esta clase presenta una base reusable de relacion unaria. Permite asignarle una algoritmo. Realiza la ejecucion de la la relacion de parametro para luego ejecutar el algoritmo. Ademas, se encarga de liberar la tabla anonima generada por la relacion de parametro.
Field Summary | |
---|---|
protected UnaryAlgorithm |
algorithm
|
Constructor Summary | |
---|---|
AbstractUnaryRelation(Relation r)
Construye una relacion unaria con la relacion r de parametro. |
Method Summary | |
---|---|
Algorithm |
algorithm()
Devuelve el algoritmo a usar. |
void |
algorithm(Algorithm a)
Asigna un algoritmo para la relacion unaria. |
abstract java.lang.Object |
clone()
Clona la relacion. |
boolean |
hasChanged()
Indica si se realizaro alguna modifiaccion en la relacion. |
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 parametro asignada. |
void |
relation(Relation inner)
Setea la relacion interior. |
void |
setChanged()
Pone en true el flag de cambios de la relacion. |
void |
setContext(UserContext context)
Setea el esquema de la relacion. |
TableSignature |
signature()
Devuelve la signautra de la relacion. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected UnaryAlgorithm algorithm
Constructor Detail |
---|
public AbstractUnaryRelation(Relation r)
Method Detail |
---|
public Relation relation()
relation
in interface UnaryRelation
public void relation(Relation inner)
UnaryRelation
relation
in interface UnaryRelation
inner
- - la nueva realcion interior.public Algorithm algorithm()
algorithm
in interface Relation
public void algorithm(Algorithm a)
algorithm
in interface Relation
a
- - el algoritmo co el que se ejecutara la relacion.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 abstract 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 |