public class SyntheticRowSubset extends RowSubset
The engine used for expression evaluation is the GNU Java Expressions Library (JEL).
| Constructor and Description |
|---|
SyntheticRowSubset(java.lang.String name,
java.lang.String expression,
uk.ac.starlink.ttools.jel.RandomJELRowReader rowReader)
Constructs a new synthetic subset given a table and an algebraic
expression.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getExpression()
Returns the text of the expression used by this subset.
|
boolean |
isIncluded(long lrow)
Indicates whether a given row is in the subset or not.
|
void |
setExpression(java.lang.String expression,
uk.ac.starlink.ttools.jel.RandomJELRowReader rowReader)
Sets the expression to use for this subset.
|
public SyntheticRowSubset(java.lang.String name,
java.lang.String expression,
uk.ac.starlink.ttools.jel.RandomJELRowReader rowReader)
throws gnu.jel.CompilationException
name - the name to use for the new RowSubsetexpression - the algebraic expressionrowReader - context for JEL expression evaluationgnu.jel.CompilationExceptionpublic void setExpression(java.lang.String expression,
uk.ac.starlink.ttools.jel.RandomJELRowReader rowReader)
throws gnu.jel.CompilationException
expression - JEL expressionrowReader - context for JEL expression evaluationgnu.jel.CompilationExceptionpublic java.lang.String getExpression()
public boolean isIncluded(long lrow)
RowSubsetisIncluded in class RowSubsetlrow - the index of the row in questionCopyright ? 2003-2017 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.