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

Field Summary
 
Fields inherited from class uk.ac.starlink.table.ColumnStarTable
columns
 
Constructor Summary
ColFitsStarTable(File file, Header hdr, long dataPos)
          Constructor.
 
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.ColumnStarTable
addColumn, getCell, getColumnCount, getColumnData, getColumnInfo, makeTableWithRows, setCell, setColumn
 
Methods inherited from class uk.ac.starlink.table.RandomStarTable
getRowSequence, isRandom
 
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
 

Constructor Detail

ColFitsStarTable

public ColFitsStarTable(File file,
                        Header hdr,
                        long dataPos)
                 throws IOException
Constructor.

Parameters:
file - file containing the FITS data
hdr - header of the HDU containing the table
dataPos - offset into file of the start of the data part of the HDU
Method Detail

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

Copyright © 2004 CLRC: Central Laboratory of the Research Councils. All rights reserved.