|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorc.runtime.Group
orc.runtime.values.GroupCell
public final class GroupCell
A value container that is also a group. Groups are essential to the evaluation of where clauses: all the tokens that arise from execution of a where definition are associated with the same group. Once a value is produced for the group, all these tokens are terminated.
Field Summary |
---|
Fields inherited from class orc.runtime.Group |
---|
alive |
Constructor Summary | |
---|---|
GroupCell(Group parent,
TokenTracer.PullTrace pullTrace)
|
Method Summary | |
---|---|
void |
close()
If a GroupRegion is closed, it closes the associated cell, even if that cell has not yet been bound. |
java.lang.Object |
forceArg(Token t)
|
Callable |
forceCall(Token t)
|
Transaction |
getTransaction()
|
boolean |
isBound()
|
void |
onKill()
Override this. |
java.lang.Object |
peekValue()
|
void |
setTransaction(Transaction trans)
|
void |
setValue(Token token)
This call defines the fundamental behavior of groups: When the value is bound, all subgroups are killed and all waiting tokens are activated. |
java.lang.String |
toString()
|
void |
waitForValue(Token t)
Add a token to the waiting queue of this group |
Methods inherited from class orc.runtime.Group |
---|
add, isAlive, kill, remove |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GroupCell(Group parent, TokenTracer.PullTrace pullTrace)
pullTrace
- used to identify the group cell in traces (see TokenTracer.pull()
).Method Detail |
---|
public void setValue(Token token)
token
- the token with the result value for the grouppublic void close()
This is also called when a transaction is aborted.
public void onKill()
Group
onKill
in class Group
public void waitForValue(Token t)
t
- public java.lang.Object forceArg(Token t)
forceArg
in interface Future
public Callable forceCall(Token t) throws UncallableValueException
forceCall
in interface Future
UncallableValueException
public Transaction getTransaction()
public void setTransaction(Transaction trans)
public java.lang.Object peekValue()
public boolean isBound()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |