ColumnSupplementpublic class JELColumnSupplement extends java.lang.Object implements ColumnSupplement
| Constructor | Description |
|---|---|
JELColumnSupplement(uk.ac.starlink.table.StarTable inTable,
java.lang.String[] exprs,
uk.ac.starlink.table.ColumnInfo[] colInfos) |
Constructs a multiple-column JEL column supplement.
|
JELColumnSupplement(uk.ac.starlink.table.StarTable inTable,
java.lang.String expr,
uk.ac.starlink.table.ColumnInfo colInfo) |
Constructs a single-column JEL column supplement.
|
| Modifier and Type | Method | Description |
|---|---|---|
SupplementSequence |
createSequence(uk.ac.starlink.table.RowSequence rseq) |
Returns a new iterator over the values in the columns defined by
this object.
|
java.lang.Object |
getCell(long irow,
int icol) |
Random access read of a cell defined by this object.
|
int |
getColumnCount() |
Returns the number of columns defined by this object.
|
uk.ac.starlink.table.ColumnInfo |
getColumnInfo(int icol) |
Returns the column metadata object for a given column.
|
java.lang.Object[] |
getRow(long irow) |
Random access read of a row defined by this object.
|
public JELColumnSupplement(uk.ac.starlink.table.StarTable inTable,
java.lang.String[] exprs,
uk.ac.starlink.table.ColumnInfo[] colInfos)
throws java.io.IOException
inTable - table providing JEL contextexprs - JEL expressions for columnscolInfos - metadata for columns
(data types may be changed to match expression output);
if null, names are generated automaticallyjava.io.IOException - with a helpful message if one of the expressions
cannot be compiledpublic JELColumnSupplement(uk.ac.starlink.table.StarTable inTable,
java.lang.String expr,
uk.ac.starlink.table.ColumnInfo colInfo)
throws java.io.IOException
inTable - table providing JEL contextexpr - JEL expression for columncolInfo - metadata for column
(data type may be changed to match expression output);
if null, name is generated automaticallyjava.io.IOExceptionpublic int getColumnCount()
ColumnSupplementgetColumnCount in interface ColumnSupplementpublic uk.ac.starlink.table.ColumnInfo getColumnInfo(int icol)
ColumnSupplementgetColumnInfo in interface ColumnSupplementicol - column index within this objectpublic java.lang.Object getCell(long irow,
int icol)
throws java.io.IOException
ColumnSupplementgetCell in interface ColumnSupplementirow - row indexicol - column indexjava.io.IOExceptionpublic java.lang.Object[] getRow(long irow)
throws java.io.IOException
ColumnSupplementgetRow in interface ColumnSupplementirow - row indexjava.io.IOExceptionpublic SupplementSequence createSequence(uk.ac.starlink.table.RowSequence rseq)
ColumnSupplementcreateSequence in interface ColumnSupplementrseq - row sequence providing data from the host tableCopyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.