Package uk.ac.starlink.ttools.jel
Class RandomJELRowReader
- java.lang.Object
-
- gnu.jel.DVMap
-
- uk.ac.starlink.ttools.jel.JELRowReader
-
- uk.ac.starlink.ttools.jel.StarTableJELRowReader
-
- uk.ac.starlink.ttools.jel.RandomJELRowReader
-
public class RandomJELRowReader extends StarTableJELRowReader
Implements JELRowReader for a random access table.- Since:
- 8 Feb 2005
- Author:
- Mark Taylor (Starlink)
-
-
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, OBJECT_PREFIX
-
-
Constructor Summary
Constructors Constructor Description RandomJELRowReader(uk.ac.starlink.table.StarTable table)Constructs a new row reader for a random-access table.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectevaluateAtRow(gnu.jel.CompiledExpression compEx, long lrow)Evaluates a given compiled expression at a given row.java.lang.ObjectgetCell(int icol)Returns the cell at a given column in the current row.longgetCurrentRow()Returns the current row for evaluations.voidsetCurrentRow(long lrow)Sets the current row for evaluations.-
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 uk.ac.starlink.ttools.jel.JELRowReader
evaluate, evaluateDouble, foundNull, getBooleanArrayProperty, getBooleanProperty, getBooleanProperty, getBooleanValue, getByteArrayProperty, getByteProperty, getByteValue, getCharArrayProperty, getCharProperty, getCharValue, getColumnIndex, getDateArrayProperty, getDoubleArrayProperty, getDoubleProperty, getDoubleValue, getFloatArrayProperty, getFloatProperty, getFloatValue, getIntArrayProperty, getIntProperty, getIntValue, getLongArrayProperty, getLongProperty, getLongValue, getNumberProperty, getObjectArrayProperty, getObjectProperty, getShortArrayProperty, getShortProperty, getShortValue, getStringArrayProperty, getStringProperty, getTranslatedColumns, getTypeName, setFailOnNull, stripPrefix, translate
-
-
-
-
Method Detail
-
getCurrentRow
public long getCurrentRow()
Returns the current row for evaluations.- Specified by:
getCurrentRowin classStarTableJELRowReader- Returns:
- current row
-
setCurrentRow
public void setCurrentRow(long lrow)
Sets the current row for evaluations.- Parameters:
lrow- current row
-
evaluateAtRow
public java.lang.Object evaluateAtRow(gnu.jel.CompiledExpression compEx, long lrow) throws java.lang.ThrowableEvaluates a given compiled expression at a given row. The returned value is wrapped up as an object if the result of the expression is a primitive.- Parameters:
compEx- compiled expression- Throws:
java.lang.Throwable
-
getCell
public java.lang.Object getCell(int icol) throws java.io.IOExceptionReturns the cell at a given column in the current row.- Specified by:
getCellin classStarTableJELRowReader- Parameters:
icol- column index- Returns:
- cell at (getCurrentRow(),icol)
- Throws:
java.io.IOException
-
-