public interface ColumnCalculator<S>
This interface is suitable for algorithms which do not simply operate row-by-row, that is they may need some or all rows of an input table in order to generate the output table. In typical usage it may take a significant amount of time to complete; it will not normally be appropriate to invoke the same calculation on the same table more than once (for instance, to generate virtual data for table cells).
Modifier and Type | Method and Description |
---|---|
void |
calculateColumns(S spec,
StarTable tupleTable,
TableSink sink)
Performs the calculation.
|
ValueInfo[] |
getTupleInfos()
Returns an array describing the columns of the input table.
|
ValueInfo[] getTupleInfos()
void calculateColumns(S spec, StarTable tupleTable, TableSink sink) throws IOException
spec
object.
The output table must have the same number of rows as the input table,
and will not normally contain any of the same columns.spec
- specification object providing additional instructions
about the calculation to be performedtupleTable
- input table, with one column for each tuple elementsink
- sink to which the output table is writtenIOException
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.