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.IOException
public long getRowCount()
getRowCount
in interface uk.ac.starlink.table.StarTable
getRowCount
in class uk.ac.starlink.table.RandomStarTable
public int getColumnCount()
getColumnCount
in interface uk.ac.starlink.table.StarTable
getColumnCount
in class uk.ac.starlink.table.AbstractStarTable
public uk.ac.starlink.table.ColumnInfo getColumnInfo(int icol)
getColumnInfo
in interface uk.ac.starlink.table.StarTable
getColumnInfo
in class uk.ac.starlink.table.AbstractStarTable
public java.util.List getColumnAuxDataInfos()
getColumnAuxDataInfos
in interface uk.ac.starlink.table.StarTable
getColumnAuxDataInfos
in class uk.ac.starlink.table.AbstractStarTable
public java.lang.Object getCell(long lrow, int icol) throws java.io.IOException
getCell
in interface uk.ac.starlink.table.StarTable
getCell
in class uk.ac.starlink.table.AbstractStarTable
java.io.IOException
public java.lang.Object[] getRow(long lrow) throws java.io.IOException
getRow
in interface uk.ac.starlink.table.StarTable
getRow
in class uk.ac.starlink.table.AbstractStarTable
java.io.IOException
Copyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.