|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.topcat.RowSubset
uk.ac.starlink.topcat.SyntheticRowSubset
public class SyntheticRowSubset
A RowSubset which uses an algebraic expression based on the values of other columns in the same row to decide whether a row is included or not.
The engine used for expression evaluation is the GNU Java Expressions Library (JEL).
Field Summary |
---|
Fields inherited from class uk.ac.starlink.topcat.RowSubset |
---|
ALL, NONE |
Constructor Summary | |
---|---|
SyntheticRowSubset(String name,
String expression,
uk.ac.starlink.ttools.jel.RandomJELRowReader rowReader)
Constructs a new synthetic subset given a table and an algebraic expression. |
Method Summary | |
---|---|
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(String expression,
uk.ac.starlink.ttools.jel.RandomJELRowReader rowReader)
Sets the expression to use for this subset. |
Methods inherited from class uk.ac.starlink.topcat.RowSubset |
---|
getName, setName, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SyntheticRowSubset(String name, 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 evaluation
gnu.jel.CompilationException
Method Detail |
---|
public void setExpression(String expression, uk.ac.starlink.ttools.jel.RandomJELRowReader rowReader) throws gnu.jel.CompilationException
expression
- JEL expressionrowReader
- context for JEL expression evaluation
gnu.jel.CompilationException
public String getExpression()
public boolean isIncluded(long lrow)
RowSubset
isIncluded
in class RowSubset
lrow
- the index of the row in question
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |