public class ProgressRowSequence extends WrapperRowSequence
ProgressIndicator.
Has to contain a couple methods extra to the RowSequence
interface to make it behave properly.baseSeq| Constructor and Description |
|---|
ProgressRowSequence(StarTable table,
ProgressIndicator indicator,
String stage)
Constructs a new ProgressRowSequence.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Indicates that progress is at an end.
|
boolean |
next()
Attempts to advance the current row to the next one.
|
boolean |
nextProgress()
Invokes
next() and also updates the progress indicator. |
getCell, getRow, toStringpublic ProgressRowSequence(StarTable table, ProgressIndicator indicator, String stage) throws IOException
table - table to get the base row sequence fromindicator - indicator to be informed about progressstage - string describing this stage of the processIOExceptionpublic boolean nextProgress()
throws IOException,
InterruptedException
next() and also updates the progress indicator.IOExceptionInterruptedExceptionpublic boolean next()
throws IOException
RowSequencetrue is returned the attempt has been successful,
and if false is returned there are no more rows in this
sequence.
Since the initial position of a RowSequence is before the first row,
this method must be called before current row data
can be accessed using the
RowSequence.getCell(int) or RowSequence.getRow() methods.next in interface RowSequencenext in interface Sequencenext in class WrapperRowSequencetrue iff this sequence has been advanced to the
next rowIOException - if there is some errorpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface RowSequenceclose in class WrapperRowSequenceIOExceptionCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.