|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgnu.jel.DVMap
uk.ac.starlink.ttools.jel.JELRowReader
uk.ac.starlink.ttools.jel.StarTableJELRowReader
uk.ac.starlink.ttools.jel.SequentialJELRowReader
public class 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.jel.StarTableJELRowReader |
---|
PARAM_PREFIX, UCD_PREFIX, UTYPE_PREFIX |
Fields inherited from class uk.ac.starlink.ttools.jel.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 value for a given column in this reader's table at 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 uk.ac.starlink.ttools.jel.StarTableJELRowReader |
---|
createDescribedValueConstant, getBooleanColumnValue, getByteColumnValue, getCharColumnValue, getColumnClass, getColumnIndexByName, getConstantByName, getDoubleColumnValue, getFloatColumnValue, getIntColumnValue, getLongColumnValue, getObjectColumnValue, getShortColumnValue, getSpecialByName, getTable, getUcdRegex, getUtypeRegex, isBlank |
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 read
IOException
Method Detail |
---|
public Object getCell(int icol) throws IOException
StarTableJELRowReader
getCell
in interface RowSequence
getCell
in class StarTableJELRowReader
icol
- column index
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()
StarTableJELRowReader
getCurrentRow
in class StarTableJELRowReader
public void close() throws IOException
RowSequence
close
is undefined.
close
in interface RowSequence
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |