public class QueueTableSequence extends java.lang.Object implements TableSequence
nextTable method will
block until a result is available.| Constructor and Description |
|---|
QueueTableSequence()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addError(java.lang.Throwable error)
Adds a load error to the queue.
|
void |
addTable(StarTable table)
Adds a table to the queue.
|
void |
endSequence()
Indicates that no more load success or failure indications will be
added by the queue writer.
|
StarTable |
nextTable()
Returns the next table in the sequence, or null if the end of
the sequence is reached.
|
public void addTable(StarTable table)
table - successfully loaded tablepublic void addError(java.lang.Throwable error)
error - reason for unsuccessful table load attemptpublic void endSequence()
public StarTable nextTable() throws java.io.IOException
TableSequencenextTable in interface TableSequencejava.io.IOException - if there is an error obtaining the table