public abstract class CalculatorColumnSupplement extends Object implements ColumnSupplement
calculate(java.lang.Object[]) method.| Constructor and Description |
|---|
CalculatorColumnSupplement(ColumnSupplement baseSup,
ColumnInfo[] outColInfos)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract Object[] |
calculate(Object[] inRow)
Performs the calculations which populate the columns of this table.
|
SupplementData |
createSupplementData(RowData rdata)
Returns a new accessor for 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.
|
static double |
getDouble(Object value)
Utility method to turn an Object into a floating point value.
|
Object[] |
getRow(long irow)
Random access read of a row defined by this object.
|
public CalculatorColumnSupplement(ColumnSupplement baseSup, ColumnInfo[] outColInfos)
baseSup - base supplementoutColInfos - column metadata for the supplementary columns
(length defines column count)protected abstract Object[] calculate(Object[] inRow) throws IOException
The implementation must return a new array each time,
not repopulate the same Object[] array object.
inRow - input column valuesIOExceptionpublic int getColumnCount()
ColumnSupplementgetColumnCount in interface ColumnSupplementpublic ColumnInfo getColumnInfo(int icol)
ColumnSupplementgetColumnInfo in interface ColumnSupplementicol - column index within this objectpublic Object[] getRow(long irow) throws IOException
ColumnSupplementgetRow in interface ColumnSupplementirow - row indexIOExceptionpublic Object getCell(long irow, int icol) throws IOException
ColumnSupplementgetCell in interface ColumnSupplementirow - row indexicol - column indexIOExceptionpublic SupplementData createSupplementData(RowData rdata) throws IOException
ColumnSupplementcreateSupplementData in interface ColumnSupplementrdata - row accessor providing data from the host tableIOExceptionpublic static double getDouble(Object value)
value - object valueCopyright © 2026 Central Laboratory of the Research Councils. All Rights Reserved.