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, toString
public 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 processIOException
public boolean nextProgress() throws IOException, InterruptedException
next()
and also updates the progress indicator.IOException
InterruptedException
public boolean next() throws IOException
RowSequence
true
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 RowSequence
next
in interface Sequence
next
in class WrapperRowSequence
true
iff this sequence has been advanced to the
next rowIOException
- if there is some errorpublic void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface RowSequence
close
in class WrapperRowSequence
IOException
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.