uk.ac.starlink.fits
Class ColFitsStarTable
java.lang.Object
uk.ac.starlink.table.AbstractStarTable
uk.ac.starlink.table.RandomStarTable
uk.ac.starlink.table.ColumnStarTable
uk.ac.starlink.fits.ColFitsStarTable
- All Implemented Interfaces:
- StarTable
- public class ColFitsStarTable
- extends ColumnStarTable
StarTable based on a single-row FITS BINTABLE which contains the
data for an entire column in each cell of the table.
The BINTABLE must be the first extension of an uncompressed
FITS table on disk.
- Since:
- 21 Jun 2006
Method Summary |
long |
getRowCount()
Gets the number of rows in the table (which must be applicable to
all the columns). |
Methods inherited from class uk.ac.starlink.table.AbstractStarTable |
checkedLongToInt, getColumnAuxDataInfos, getName, getParameterByName, getParameters, getRow, getURL, setName, setParameter, setParameters, setURL |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ColFitsStarTable
public ColFitsStarTable(File file,
nom.tam.fits.Header hdr,
long dataPos)
throws IOException
- Constructor.
- Parameters:
file
- file containing the FITS datahdr
- header of the HDU containing the tabledataPos
- offset into file
of the start of the
data part of the HDU
getRowCount
public long getRowCount()
- Description copied from class:
ColumnStarTable
- Gets the number of rows in the table (which must be applicable to
all the columns). Since this is a RandomStarTable the
return value must be non-negative.
- Specified by:
getRowCount
in interface StarTable
- Specified by:
getRowCount
in class ColumnStarTable
- Returns:
- number of rows