one.world.io
Class QueryResponse
java.lang.Object
|
+--one.world.core.Tuple
|
+--one.world.core.Event
|
+--one.world.io.QueryResponse
- All Implemented Interfaces:
- Cloneable, Serializable
- public class QueryResponse
- extends Event
Implementation of a query response.
- Version:
- $Revision: 1.8 $
- See Also:
InputRequest,
IteratorRequest,
IteratorResponse, Serialized Form
|
Field Summary |
long |
duration
The initial duration for the lease. |
EventHandler |
iter
The event handler for the iterator, which iterates a query's
results. |
EventHandler |
lease
The event handler for the lease that controls the result
iterator. |
|
Method Summary |
void |
validate()
Validate this query response. |
| Methods inherited from class one.world.core.Tuple |
clone, containsNonSymbolicHandler, equals, fields, get, getMetaData, getType, hasField, hashCode, hasMetaData, remove, set, setMetaData, toString, wrap |
iter
public EventHandler iter
- The event handler for the iterator, which iterates a query's
results.
lease
public EventHandler lease
- The event handler for the lease that controls the result
iterator.
duration
public long duration
- The initial duration for the lease.
- See Also:
Duration
QueryResponse
public QueryResponse()
- Create a new, empty query response.
QueryResponse
public QueryResponse(EventHandler source,
Object closure,
EventHandler iter,
EventHandler lease,
long duration)
- Create a new query response.
- Parameters:
source - The source for the new query response.closure - The closure for the new query response.iter - The result iterator's event handler for the new
query response.lease - The lease's event handler for the new query
response.duration - The initial lease duration.
validate
public void validate()
throws TupleException
- Validate this query response.
- Overrides:
validate in class Event
- Following copied from class:
one.world.core.Tuple
- Throws:
TupleException - Signals that the tuple is either malformed
(i.e., does not conform to the tuple
specification) or invalid (i.e., does not
conform to the semantic constraints of its
type).- See Also:
MalformedTupleException,
InvalidTupleException,
Type.validate(Class)
(C) Copyright 2001 UW CSE