Package uk.ac.starlink.table.join
Class ProgressRowSequence
java.lang.Object
uk.ac.starlink.table.WrapperRowSequence
uk.ac.starlink.table.join.ProgressRowSequence
- All Implemented Interfaces:
Closeable,AutoCloseable,uk.ac.starlink.table.RowData,uk.ac.starlink.table.RowSequence,uk.ac.starlink.util.Sequence
public class ProgressRowSequence
extends uk.ac.starlink.table.WrapperRowSequence
RowSequence which logs progress to a
ProgressIndicator.
Has to contain a couple methods extra to the RowSequence
interface to make it behave properly.- Since:
- 6 Aug 2004
- Author:
- Mark Taylor (Starlink)
-
Field Summary
Fields inherited from class uk.ac.starlink.table.WrapperRowSequence
baseSeq -
Constructor Summary
ConstructorsConstructorDescriptionProgressRowSequence(uk.ac.starlink.table.StarTable table, ProgressIndicator indicator, String stage) Constructs a new ProgressRowSequence. -
Method Summary
Methods inherited from class uk.ac.starlink.table.WrapperRowSequence
getCell, getRow, toString
-
Constructor Details
-
ProgressRowSequence
public ProgressRowSequence(uk.ac.starlink.table.StarTable table, ProgressIndicator indicator, String stage) throws IOException Constructs a new ProgressRowSequence.- Parameters:
table- table to get the base row sequence fromindicator- indicator to be informed about progressstage- string describing this stage of the process- Throws:
IOException
-
-
Method Details
-
nextProgress
Invokesnext()and also updates the progress indicator.- Throws:
IOExceptionInterruptedException
-
next
- Specified by:
nextin interfaceuk.ac.starlink.table.RowSequence- Specified by:
nextin interfaceuk.ac.starlink.util.Sequence- Overrides:
nextin classuk.ac.starlink.table.WrapperRowSequence- Throws:
IOException
-
close
Indicates that progress is at an end. Must be called to end the progress indicator's stage.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceuk.ac.starlink.table.RowSequence- Overrides:
closein classuk.ac.starlink.table.WrapperRowSequence- Throws:
IOException
-