public class JELTable
extends uk.ac.starlink.table.WrapperStarTable
| Constructor | Description |
|---|---|
JELTable(uk.ac.starlink.table.StarTable baseTable,
uk.ac.starlink.table.ColumnInfo[] colInfos,
java.lang.String[] exprs) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
static uk.ac.starlink.table.StarTable |
createJELTable(uk.ac.starlink.table.StarTable baseTable,
java.lang.String[] exprs) |
Creates a JELTable from a base table and a list of column expressions.
|
static uk.ac.starlink.table.StarTable |
createJELTable(uk.ac.starlink.table.StarTable baseTable,
uk.ac.starlink.table.ValueInfo[] infos,
java.lang.String[] exprs) |
Convenience factory method.
|
java.lang.Object |
getCell(long irow,
int icol) |
|
int |
getColumnCount() |
|
uk.ac.starlink.table.ColumnInfo |
getColumnInfo(int icol) |
|
java.lang.Object[] |
getRow(long irow) |
|
uk.ac.starlink.table.RowSequence |
getRowSequence() |
public JELTable(uk.ac.starlink.table.StarTable baseTable,
uk.ac.starlink.table.ColumnInfo[] colInfos,
java.lang.String[] exprs)
throws gnu.jel.CompilationException
colInfos, which must be the same as the number of
elements in exprs.
If the contentClass attributes of the colInfos
elements are non-null, they must be compatible with the actual
types of the evaluated expressions. If they are not, an
IllegalArgumentException will be thrown.baseTable - table which provides both behaviour determining
whether random access is available etc, and an evaluation
context for the JEL calculationscolInfos - column metadata for each of the columns
in this tableexprs - JEL expressions, evaluated in a context determined
by baseTable, which give the data for this table.gnu.jel.CompilationExceptionpublic int getColumnCount()
getColumnCount in class uk.ac.starlink.table.WrapperStarTablepublic uk.ac.starlink.table.ColumnInfo getColumnInfo(int icol)
getColumnInfo in class uk.ac.starlink.table.WrapperStarTablepublic java.lang.Object getCell(long irow,
int icol)
throws java.io.IOException
getCell in class uk.ac.starlink.table.WrapperStarTablejava.io.IOExceptionpublic java.lang.Object[] getRow(long irow)
throws java.io.IOException
getRow in class uk.ac.starlink.table.WrapperStarTablejava.io.IOExceptionpublic uk.ac.starlink.table.RowSequence getRowSequence()
throws java.io.IOException
getRowSequence in class uk.ac.starlink.table.WrapperStarTablejava.io.IOExceptionpublic static uk.ac.starlink.table.StarTable createJELTable(uk.ac.starlink.table.StarTable baseTable,
uk.ac.starlink.table.ValueInfo[] infos,
java.lang.String[] exprs)
throws uk.ac.starlink.task.ExecutionException
infos
into ColumnInfos and rethrows any CompilationException as an
ExecutionException.baseTable - table which provides both behaviour determining
whether random access is available etc, and an evaluation
context for the JEL calculationsinfos - metadata used to construct column metadataexprs - JEL expressions, evaluated in a context determined
by baseTable, which give the data for this tableuk.ac.starlink.task.ExecutionExceptionpublic static uk.ac.starlink.table.StarTable createJELTable(uk.ac.starlink.table.StarTable baseTable,
java.lang.String[] exprs)
throws gnu.jel.CompilationException
baseTable - table which provides both behaviour determining
whether random access is available etc, and an evaluation
context for the JEL calculationsexprs - JEL expressions, evaluated in a context determined
by baseTable, which give the data for this tablegnu.jel.CompilationExceptionCopyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.