|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ostore.client.OSUpdateTuple
The OSUpdateTuple
represents a tuple in an
OSUpdate
. The tuple is a predicate/action pair.
The predicate, represented by an OSPredicate
, is the
root of a boolean expression of predicates; the action is an
ordered list of OSAction
s.
The evaluation of tuples is described in the documentation of the
OSUpdate
.
OSPredicate
,
OSAction
Constructor Summary | |
---|---|
OSUpdateTuple(InputBuffer buffer)
|
|
OSUpdateTuple(OSPredicate predicate,
OSAction action)
Creates a new OSUpdateTuple that contains the
given predicate and action. |
Method Summary | |
---|---|
void |
appendAction(OSAction action)
Appends an action to the end of the ordered action list. |
Vector |
getActions()
Returns a vector of the tuple's actions. |
OSPredicate |
getPredicate()
Returns the tuple's predicate. |
void |
prependAction(OSAction action)
Prepends an action to the head of the ordered action list. |
void |
serialize(OutputBuffer buffer)
Add the object to the buffer . |
void |
setPredicate(OSPredicate predicate)
Sets the tuple's predicate. |
String |
toString()
Return the string representation of the tuple. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public OSUpdateTuple(OSPredicate predicate, OSAction action)
OSUpdateTuple
that contains the
given predicate and action.
predicate
- the predicate for the tupleaction
- the first action for the tuplepublic OSUpdateTuple(InputBuffer buffer) throws QSException
Method Detail |
public void serialize(OutputBuffer buffer)
QuickSerializable
buffer
.
serialize
in interface QuickSerializable
buffer
- the output buffer to add the object topublic void setPredicate(OSPredicate predicate)
predicate
- the predicate for the tuplepublic OSPredicate getPredicate()
public void appendAction(OSAction action)
action
- the action to be appendedpublic void prependAction(OSAction action)
action
- the action to be prependedpublic Vector getActions()
public String toString()
toString
in class Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |