uk.ac.starlink.ttools.filter
Class JELSelectorTable

java.lang.Object
  extended by uk.ac.starlink.table.WrapperStarTable
      extended by uk.ac.starlink.ttools.filter.JELSelectorTable
All Implemented Interfaces:
uk.ac.starlink.table.StarTable

public class JELSelectorTable
extends uk.ac.starlink.table.WrapperStarTable

Sequential table which selects rows on the basis of a JEL-interpreted expression.

See Also:
JELRowReader

Field Summary
 
Fields inherited from class uk.ac.starlink.table.WrapperStarTable
baseTable
 
Constructor Summary
JELSelectorTable(uk.ac.starlink.table.StarTable baseTable, String expr)
          Construct a table given a base table and a selection expression.
 
Method Summary
 long getRowCount()
           
 uk.ac.starlink.table.RowSequence getRowSequence()
           
 boolean isRandom()
           
 
Methods inherited from class uk.ac.starlink.table.WrapperStarTable
checkedLongToInt, getBaseTable, getCell, getColumnAuxDataInfos, getColumnCount, getColumnInfo, getName, getParameterByName, getParameters, getRow, getURL, setName, setParameter, setURL, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JELSelectorTable

public JELSelectorTable(uk.ac.starlink.table.StarTable baseTable,
                        String expr)
                 throws gnu.jel.CompilationException
Construct a table given a base table and a selection expression.

Parameters:
baseTable - base table
expr - boolean algebraic expression describing inclusion test
Throws:
gnu.jel.CompilationException
Method Detail

isRandom

public boolean isRandom()
Specified by:
isRandom in interface uk.ac.starlink.table.StarTable
Overrides:
isRandom in class uk.ac.starlink.table.WrapperStarTable

getRowCount

public long getRowCount()
Specified by:
getRowCount in interface uk.ac.starlink.table.StarTable
Overrides:
getRowCount in class uk.ac.starlink.table.WrapperStarTable

getRowSequence

public uk.ac.starlink.table.RowSequence getRowSequence()
                                                throws IOException
Specified by:
getRowSequence in interface uk.ac.starlink.table.StarTable
Overrides:
getRowSequence in class uk.ac.starlink.table.WrapperStarTable
Throws:
IOException


Copyright © 2009 Central Laboratory of the Research Councils. All Rights Reserved.