public class FitsStarTable extends RandomStarTable
This implementation uses the table handling in the nom.tam.fits
package. I think that performance could be considerably improved
by rewriting the table access from scratch. The reason for this is
largely that the nom.tam.fits classes do a lot of wrapping of values
in (perhaps multi-dimensional) arrays, which is not for our purposes
necessary. Such a re-implementation would take a bit of effort
unfortunately.
| Constructor and Description |
|---|
FitsStarTable(TableHDU thdu)
Constructs a FitsStarTable object from a FITS TableHDU object.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getCell(long lrow,
int icol)
Implementations of this method must be safe for concurrent calls
from multiple threads.
|
List<ValueInfo> |
getColumnAuxDataInfos()
Goes through the table columns (
ColumnInfo objects)
and picks out all the AuxData items which exist, generalising
where necessary and returning a union of them in
alphabetical order by name. |
int |
getColumnCount()
Returns the number of columns in this table.
|
ColumnInfo |
getColumnInfo(int icol)
Returns the object describing the data in a given column.
|
Object[] |
getRow(long lrow)
The
AbstractStarTable implementation of this method
constructs a row by repeated invocation of AbstractStarTable.getCell(long, int). |
long |
getRowCount()
Implementations must supply a non-negative return value.
|
getRowAccess, getRowSequence, isRandomcheckedLongToInt, close, getName, getParameters, getRowSplittable, getURL, setName, setParameters, setURLclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetParameterByName, setParameterpublic FitsStarTable(TableHDU thdu) throws IOException
thdu - a TableHDU object containing dataIOExceptionpublic long getRowCount()
RandomStarTablegetRowCount in interface StarTablegetRowCount in class RandomStarTablepublic int getColumnCount()
StarTablegetColumnCount in interface StarTablegetColumnCount in class AbstractStarTablepublic ColumnInfo getColumnInfo(int icol)
StarTablegetColumnInfo in interface StarTablegetColumnInfo in class AbstractStarTableicol - the column for which header information is requiredicolpublic List<ValueInfo> getColumnAuxDataInfos()
AbstractStarTableColumnInfo objects)
and picks out all the AuxData items which exist, generalising
where necessary and returning a union of them in
alphabetical order by name.
Subclasses should override this if they can do better, for instance
providing an order for the keys.getColumnAuxDataInfos in interface StarTablegetColumnAuxDataInfos in class AbstractStarTableValueInfo
items which in fact crop up in column metadataDefaultValueInfo.getAuxData()public Object getCell(long lrow, int icol) throws IOException
RandomStarTablegetCell in interface StarTablegetCell in class RandomStarTablelrow - the index of the cell's rowicol - the index of the cell's columnIOException - if there is an error reading the datapublic Object[] getRow(long lrow) throws IOException
AbstractStarTableAbstractStarTable implementation of this method
constructs a row by repeated invocation of AbstractStarTable.getCell(long, int).getRow in interface StarTablegetRow in class AbstractStarTablelrow - the index of the row to retrieveirowIOException - if there is an error reading the dataCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.