public class FitsStarTable
extends uk.ac.starlink.table.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.
This class should only be used for TABLE extension (that is ASCII table)
HDUs.
The BintableStarTable class is much more efficient for BINTTABLE
extensions (binary table) HDUs.
| Constructor and Description |
|---|
FitsStarTable(nom.tam.fits.TableHDU thdu)
Constructs a FitsStarTable object from a FITS TableHDU object.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getCell(long lrow,
int icol) |
java.util.List |
getColumnAuxDataInfos() |
int |
getColumnCount() |
uk.ac.starlink.table.ColumnInfo |
getColumnInfo(int icol) |
java.lang.Object[] |
getRow(long lrow) |
long |
getRowCount() |
public FitsStarTable(nom.tam.fits.TableHDU thdu)
throws java.io.IOException
thdu - a TableHDU object containing datajava.io.IOExceptionpublic long getRowCount()
getRowCount in interface uk.ac.starlink.table.StarTablegetRowCount in class uk.ac.starlink.table.RandomStarTablepublic int getColumnCount()
getColumnCount in interface uk.ac.starlink.table.StarTablegetColumnCount in class uk.ac.starlink.table.AbstractStarTablepublic uk.ac.starlink.table.ColumnInfo getColumnInfo(int icol)
getColumnInfo in interface uk.ac.starlink.table.StarTablegetColumnInfo in class uk.ac.starlink.table.AbstractStarTablepublic java.util.List getColumnAuxDataInfos()
getColumnAuxDataInfos in interface uk.ac.starlink.table.StarTablegetColumnAuxDataInfos in class uk.ac.starlink.table.AbstractStarTablepublic java.lang.Object getCell(long lrow,
int icol)
throws java.io.IOException
getCell in interface uk.ac.starlink.table.StarTablegetCell in class uk.ac.starlink.table.AbstractStarTablejava.io.IOExceptionpublic java.lang.Object[] getRow(long lrow)
throws java.io.IOException
getRow in interface uk.ac.starlink.table.StarTablegetRow in class uk.ac.starlink.table.AbstractStarTablejava.io.IOExceptionCopyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.