|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.filter.JELColumnSupplement
public class JELColumnSupplement
ColumnSupplement that generates new columns based on JEL expressions.
Constructor Summary | |
---|---|
JELColumnSupplement(StarTable inTable,
String[] exprs,
ColumnInfo[] colInfos)
Constructs a multiple-column JEL column supplement. |
|
JELColumnSupplement(StarTable inTable,
String expr,
ColumnInfo colInfo)
Constructs a single-column JEL column supplement. |
Method Summary | |
---|---|
SupplementSequence |
createSequence(RowSequence rseq)
Returns a new iterator over the values in the columns defined by this object. |
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. |
ColumnInfo |
getColumnInfo(int icol)
Returns the column metadata object for a given column. |
Object[] |
getRow(long irow)
Random access read of a row defined by this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JELColumnSupplement(StarTable inTable, String[] exprs, ColumnInfo[] colInfos) throws 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 automatically
IOException
- with a helpful message if one of the expressions
cannot be compiledpublic JELColumnSupplement(StarTable inTable, String expr, ColumnInfo colInfo) throws 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 automatically
IOException
Method Detail |
---|
public int getColumnCount()
ColumnSupplement
getColumnCount
in interface ColumnSupplement
public ColumnInfo getColumnInfo(int icol)
ColumnSupplement
getColumnInfo
in interface ColumnSupplement
icol
- column index within this object
public Object getCell(long irow, int icol) throws IOException
ColumnSupplement
getCell
in interface ColumnSupplement
irow
- row indexicol
- column index
IOException
public Object[] getRow(long irow) throws IOException
ColumnSupplement
getRow
in interface ColumnSupplement
irow
- row index
IOException
public SupplementSequence createSequence(RowSequence rseq)
ColumnSupplement
createSequence
in interface ColumnSupplement
rseq
- row sequence providing data from the host table
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |