Package uk.ac.starlink.fits
Class ColFitsTableWriter
- java.lang.Object
-
- uk.ac.starlink.table.StreamStarTableWriter
-
- uk.ac.starlink.fits.AbstractFitsTableWriter
-
- uk.ac.starlink.fits.ColFitsTableWriter
-
- All Implemented Interfaces:
uk.ac.starlink.table.MultiStarTableWriter
,uk.ac.starlink.table.StarTableWriter
public class ColFitsTableWriter extends AbstractFitsTableWriter
Handles writing of aStarTable
in a column-oriented FITS binary table format. The table data is stored in a BINTABLE extension which has a single row; each cell in this row contains the data for an entire column of the represented table.This rather specialised format may provide good performance for certain operations on very large, especially very wide, tables. Although it is FITS and can therefore be used in principle for data interchange, in practice most non-STIL processors are unlikely to be able to do much useful with it.
- Since:
- 21 Jun 2006
- Author:
- Mark Taylor
-
-
Constructor Summary
Constructors Constructor Description ColFitsTableWriter()
Default constructor.ColFitsTableWriter(java.lang.String name, WideFits wide)
Custom constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected FitsTableSerializer
createSerializer(uk.ac.starlink.table.StarTable table)
Provides a suitable serializer for a given table.boolean
looksLikeFile(java.lang.String location)
-
Methods inherited from class uk.ac.starlink.fits.AbstractFitsTableWriter
addMetadata, getCurrentDate, getFormatName, getMimeType, setFormatName, writePrimaryHDU, writeStarTable, writeStarTables, writeStarTables, writeTableHDU
-
-
-
-
Constructor Detail
-
ColFitsTableWriter
public ColFitsTableWriter()
Default constructor.
-
ColFitsTableWriter
public ColFitsTableWriter(java.lang.String name, WideFits wide)
Custom constructor.- Parameters:
name
- writer namewide
- convention for representing over-wide tables; null to avoid this convention
-
-
Method Detail
-
looksLikeFile
public boolean looksLikeFile(java.lang.String location)
-
createSerializer
protected FitsTableSerializer createSerializer(uk.ac.starlink.table.StarTable table) throws java.io.IOException
Description copied from class:AbstractFitsTableWriter
Provides a suitable serializer for a given table. Note this should throw an IOException if it can be determined that the submitted table cannot be written by this writer, for instance if it has too many columns.- Specified by:
createSerializer
in classAbstractFitsTableWriter
- Parameters:
table
- table to serialize- Returns:
- FITS serializer
- Throws:
java.io.IOException
- if the table can't be written
-
-