Package uk.ac.starlink.ttools.filter
Class JELSelectorTable
- java.lang.Object
-
- uk.ac.starlink.table.WrapperStarTable
-
- uk.ac.starlink.ttools.filter.JELSelectorTable
-
- All Implemented Interfaces:
uk.ac.starlink.table.StarTable
public class JELSelectorTable extends uk.ac.starlink.table.WrapperStarTableSequential table which selects rows on the basis of a JEL-interpreted expression.- See Also:
JELRowReader
-
-
Constructor Summary
Constructors Constructor Description JELSelectorTable(uk.ac.starlink.table.StarTable baseTable, java.lang.String expr)Construct a table given a base table and a selection expression.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetRowCount()uk.ac.starlink.table.RowSequencegetRowSequence()booleanisRandom()
-
-
-
Constructor Detail
-
JELSelectorTable
public JELSelectorTable(uk.ac.starlink.table.StarTable baseTable, java.lang.String expr) throws gnu.jel.CompilationExceptionConstruct a table given a base table and a selection expression.- Parameters:
baseTable- base tableexpr- boolean algebraic expression describing inclusion test- Throws:
gnu.jel.CompilationException
-
-
Method Detail
-
isRandom
public boolean isRandom()
- Specified by:
isRandomin interfaceuk.ac.starlink.table.StarTable- Overrides:
isRandomin classuk.ac.starlink.table.WrapperStarTable
-
getRowCount
public long getRowCount()
- Specified by:
getRowCountin interfaceuk.ac.starlink.table.StarTable- Overrides:
getRowCountin classuk.ac.starlink.table.WrapperStarTable
-
getRowSequence
public uk.ac.starlink.table.RowSequence getRowSequence() throws java.io.IOException- Specified by:
getRowSequencein interfaceuk.ac.starlink.table.StarTable- Overrides:
getRowSequencein classuk.ac.starlink.table.WrapperStarTable- Throws:
java.io.IOException
-
-