public abstract class TopcatJELRowReader
extends uk.ac.starlink.ttools.jel.RandomJELRowReader
$index0" or "$00"
(case insensitive)
are evaluated as the index of the current row in the apparent table;
this differs from $index/$0
if a non-default sort order or current subset is in force.
$nrow0" is the number of rows in the
apparent table; this differs from $nrow if a non-default
current subset is in force.
$ncol0 is the number of columns in the
apparent table; this differs from $ncol if some
columns are hidden.
| Modifier and Type | Field and Description |
|---|---|
static char |
SUBSET_ID_CHAR
Prefix identifying a unique subset identifier.
|
| Modifier | Constructor and Description |
|---|---|
protected |
TopcatJELRowReader(TopcatModel tcModel)
Constructs a new row reader for a TopcatModel.
|
| Modifier and Type | Method and Description |
|---|---|
static TopcatJELRowReader |
createAccessReader(TopcatModel tcModel)
Returns a reader that uses a RowAccess object from the
TopcatModel's data model.
|
static TopcatJELRowReader |
createConcurrentReader(TopcatModel tcModel)
Returns a reader that uses the threadsafe random access methods
of the TopcatModel's data model.
|
protected uk.ac.starlink.ttools.jel.Constant<?> |
createDescribedValueConstant(uk.ac.starlink.table.DescribedValue dval)
Returns a constant which is evaluated at runtime.
|
static TopcatJELRowReader |
createDummyReader(TopcatModel tcModel)
Returns a reader that doesn't do any actual data access.
|
abstract boolean |
evaluateBooleanAtRow(gnu.jel.CompiledExpression compEx,
long lrow)
Evaluates a given compiled expression of boolean return type
at a given row.
|
boolean |
getBooleanProperty(short isub)
Returns the actual subset value for the current row and a given
column.
|
protected uk.ac.starlink.ttools.jel.Constant<?> |
getSpecialByName(String name) |
TopcatModel |
getTopcatModel()
Returns the topcat model on which this row reader is based.
|
int[] |
getTranslatedSubsetIds()
Returns a set (no duplicated elements) of the subset IDs
for which this RowReader has been asked to provide translation values.
|
String |
getTypeName(String name)
Overrides superclass implementation to recognise row subsets
by name or _ID.
|
Object |
translate(String name)
Overrides superclass implementation to recognise subsets as well as
the other special objects.
|
createAccessReader, createAccessReader, createConcurrentReader, evaluateAtRowgetBooleanColumnValue, getByteColumnValue, getCell, getCharColumnValue, getColumnClass, getColumnIndexByName, getConstantByName, getCurrentRow, getDescribedValueByName, getDoubleColumnValue, getFloatColumnValue, getIntColumnValue, getLongColumnValue, getObjectColumnValue, getShortColumnValue, getTable, getUcdRegex, getUtypeRegex, isBlank, requiresRowIndex, valueDouble, valueInt, valueLong, valueObject, valueStringevaluate, evaluateBoolean, 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, getTranslatedConstants, setFailOnNull, stripPrefixpublic static final char SUBSET_ID_CHAR
protected TopcatJELRowReader(TopcatModel tcModel)
tcModel - topcat modelpublic TopcatModel getTopcatModel()
public abstract boolean evaluateBooleanAtRow(gnu.jel.CompiledExpression compEx,
long lrow)
throws Throwable
compEx - compiled boolean expressionlrow - row at which to evaluateThrowablepublic String getTypeName(String name)
getTypeName in class uk.ac.starlink.ttools.jel.JELRowReadername - the variable namepublic Object translate(String name)
Short (the subset index) if the column specification
appears to reference a known row subset
translate in class uk.ac.starlink.ttools.jel.JELRowReadername - the name of the variable-like object to evaluatepublic int[] getTranslatedSubsetIds()
OptionsListModel returned by
TopcatModel.getSubsets)
of every RowSubset which has been directly referenced in a JEL
expression which this RowReader has been used to compile.public boolean getBooleanProperty(short isub)
isub - index of the subset to evaluate at the current rowisIncluded method of the
RowSubset indicated at the current rowprotected uk.ac.starlink.ttools.jel.Constant<?> getSpecialByName(String name)
getSpecialByName in class uk.ac.starlink.ttools.jel.StarTableJELRowReaderprotected uk.ac.starlink.ttools.jel.Constant<?> createDescribedValueConstant(uk.ac.starlink.table.DescribedValue dval)
createDescribedValueConstant in class uk.ac.starlink.ttools.jel.StarTableJELRowReaderpublic static TopcatJELRowReader createConcurrentReader(TopcatModel tcModel)
tcModel - topcat modelpublic static TopcatJELRowReader createAccessReader(TopcatModel tcModel)
tcModel - topcat modelpublic static TopcatJELRowReader createDummyReader(TopcatModel tcModel)
tcModel - topcat modelCopyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.