|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gnu.jel.DVMap | +--uk.ac.starlink.ttools.JELRowReader | +--uk.ac.starlink.ttools.SequentialJELRowReader
Implements JELRowReader for sequential access to a table.
This class also implements RowSequence
,
and this object should be treated in the same way as a row sequence
taken out on its table, that is iteration should proceed using the
next and close methods.
Field Summary |
Fields inherited from class uk.ac.starlink.ttools.JELRowReader |
COLUMN_ID_CHAR, NULL_QUERY_PREFIX |
Constructor Summary | |
SequentialJELRowReader(StarTable table)
Constructs a new row reader for sequential access. |
Method Summary | |
void |
close()
Indicates that this sequence will not be required any more. |
Object |
getCell(int icol)
Returns the contents of a cell in the current row. |
long |
getCurrentRow()
Returns the index of the row on which evaluations are currently taking place. |
Object[] |
getRow()
Returns the contents of the current table row, as an array with the same number of elements as there are columns in this table. |
boolean |
next()
Attempts to advances the current row to the next one. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SequentialJELRowReader(StarTable table) throws IOException
table
- table to readMethod Detail |
public Object getCell(int icol) throws IOException
RowSequence
getCell
in interface RowSequence
getCell
in class JELRowReader
IOException
- if there is an error reading the datapublic Object[] getRow() throws IOException
RowSequence
getRow
in interface RowSequence
IOException
- if there is an error reading the datapublic boolean next() throws IOException
RowSequence
RowSequence.getCell(int)
or RowSequence.getRow()
methods.
next
in interface RowSequence
IOException
- if there is some errorpublic long getCurrentRow()
JELRowReader
getCurrentRow
in class JELRowReader
public void close() throws IOException
RowSequence
close
is undefined.
close
in interface RowSequence
IOException
|
Copyright © 2004 CLRC: Central Laboratory of the Research Councils. All rights reserved. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |