ColumnSupplement
public 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.IOException
public int getColumnCount()
ColumnSupplement
getColumnCount
in interface ColumnSupplement
public uk.ac.starlink.table.ColumnInfo getColumnInfo(int icol)
ColumnSupplement
getColumnInfo
in interface ColumnSupplement
icol
- column index within this objectpublic java.lang.Object getCell(long irow, int icol) throws java.io.IOException
ColumnSupplement
getCell
in interface ColumnSupplement
irow
- row indexicol
- column indexjava.io.IOException
public java.lang.Object[] getRow(long irow) throws java.io.IOException
ColumnSupplement
getRow
in interface ColumnSupplement
irow
- row indexjava.io.IOException
public SupplementSequence createSequence(uk.ac.starlink.table.RowSequence rseq)
ColumnSupplement
createSequence
in interface ColumnSupplement
rseq
- row sequence providing data from the host tableCopyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.