|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.streambase.sb.client.DequeueResult
public class DequeueResult
Encapsulates the data returned from a dequeue() operation. Contains references to the originating stream, and a list of tuples.
| Field Summary | |
|---|---|
static int |
CLOSED
Status code indicating that the connection was closed |
static int |
GOOD
Status code indicating a normal dequeue |
static int |
TIMEOUT
Status code indicating a timeout during dequeue |
| Method Summary | |
|---|---|
Schema |
getSchema()
Returns the schema for the tuples dequeued |
int |
getStatus()
Return the status of this DequeueResult. |
String |
getStreamName()
Returns the name of the stream on which tuples were dequeued. |
StreamProperties |
getStreamProperties()
Return the StreamProperties for this DequeueResult |
Tuple |
getTuple()
Deprecated. |
Tuple |
getTuple(int index)
Deprecated. please use iterator() to access Tuples sequentially |
int |
getTupleCount()
Returns the number of tuples dequeued. |
Iterator |
iterator()
Returns an iterator of all tuples. |
void |
reuseTuple()
Deprecated. |
void |
reuseTuple(Tuple tuple)
Deprecated. |
List |
tuples()
Deprecated. use iterator() instead |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int GOOD
public static final int TIMEOUT
public static final int CLOSED
| Method Detail |
|---|
public void reuseTuple()
public void reuseTuple(Tuple tuple)
The semantics of this call in earlier version are difficult to rely upon safely and should be removed.
public String getStreamName()
public int getTupleCount()
public Schema getSchema()
public StreamProperties getStreamProperties()
public Tuple getTuple(int index)
public Tuple getTuple()
public List tuples()
public Iterator iterator()
iterator in interface Iterablepublic int getStatus()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||