dd.trigger
Class TriggerTester.QueryState

java.lang.Object
  |
  +--dd.trigger.TriggerTester.QueryState
All Implemented Interfaces:
DDQueryState, QuickSerializable
Enclosing class:
TriggerTester

public static class TriggerTester.QueryState
extends Object
implements DDQueryState

QueryState is a wrapper class for the state passed along with the Query of type DDQuery used in a DDLocateMsg used to find generic objects.


Constructor Summary
TriggerTester.QueryState(InputBuffer buffer)
          Constructs a QueryState from its serialized form.
TriggerTester.QueryState(int reqCardinality)
          Creates a new QueryState.
 
Method Summary
 boolean add(Object o)
          Adds the specified backpointer to this set if it is not already present.
 boolean contains(Object o)
          Tests whether the set already contains the specified backpointer.
 int getCardinality()
          getCardinality returns the number of back pointers pursued for a fragment or block.
 int getRequestedCardinality()
          getRequestedCardinality returns the requested number of back pointers pursued for a fragment.
 void serialize(OutputBuffer buffer)
          Specified by ostore.util.QuickSerializable
 void setRequestedCardinality(int cardinality)
          getRequestedCardinality returns the requested number of back pointers pursued for a fragment.
 String toString()
          Specified by java.lang.Object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TriggerTester.QueryState

public TriggerTester.QueryState(int reqCardinality)
Creates a new QueryState.


TriggerTester.QueryState

public TriggerTester.QueryState(InputBuffer buffer)
                         throws QSException
Constructs a QueryState from its serialized form.

Parameters:
buffer - serialized form of object.
Method Detail

serialize

public void serialize(OutputBuffer buffer)
Specified by ostore.util.QuickSerializable

Specified by:
serialize in interface QuickSerializable

add

public boolean add(Object o)
Adds the specified backpointer to this set if it is not already present.

Parameters:
o - - backpointer to be added to this set.
Returns:
true if the set did not already contain the specified back ptr.

contains

public boolean contains(Object o)
Tests whether the set already contains the specified backpointer.

Parameters:
o - - backpointer to be tested against set.
Returns:
true if the set already contains the specified back ptr.

getCardinality

public int getCardinality()
getCardinality returns the number of back pointers pursued for a fragment or block.

Returns:
the number of back pointers pursued for a fragment or block.

getRequestedCardinality

public int getRequestedCardinality()
getRequestedCardinality returns the requested number of back pointers pursued for a fragment.

Returns:
the requested number of back pointers pursued for a fragment.

setRequestedCardinality

public void setRequestedCardinality(int cardinality)
getRequestedCardinality returns the requested number of back pointers pursued for a fragment.

Returns:
the requested number of back pointers pursued for a fragment.

toString

public String toString()
Specified by java.lang.Object

Overrides:
toString in class Object