public class ColFitsPlusTableWriter extends VOTableFitsTableWriter
StarTable 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. The primary HDU is a byte array containing a
VOTable representation of the table metadata, as for
FitsPlusTableWriter.
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.
| Constructor and Description |
|---|
ColFitsPlusTableWriter()
Default constructor.
|
ColFitsPlusTableWriter(java.lang.String name,
uk.ac.starlink.fits.WideFits wide)
Custom constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected uk.ac.starlink.fits.FitsTableSerializer |
createSerializer(uk.ac.starlink.table.StarTable table) |
protected void |
customisePrimaryHeader(nom.tam.fits.Header hdr)
Hook for adding custom entries to the FITS header which is written
to the primary HDU.
|
protected boolean |
isMagic(int icard,
java.lang.String key,
java.lang.String value)
Tests a header card to see if it looks like part of the magic number
for the format written by this handler.
|
boolean |
looksLikeFile(java.lang.String location) |
isMagic, setVotableVersion, writeStarTablesaddMetadata, getCurrentDate, getFormatName, getMimeType, setFormatName, writePrimaryHDU, writeStarTable, writeStarTables, writeTableHDUpublic ColFitsPlusTableWriter()
public ColFitsPlusTableWriter(java.lang.String name,
uk.ac.starlink.fits.WideFits wide)
name - writer namewide - convention for representing over-wide tables;
null to avoid this conventionpublic boolean looksLikeFile(java.lang.String location)
protected void customisePrimaryHeader(nom.tam.fits.Header hdr)
throws nom.tam.fits.HeaderCardException
VOTableFitsTableWritercustomisePrimaryHeader in class VOTableFitsTableWriternom.tam.fits.HeaderCardExceptionprotected boolean isMagic(int icard,
java.lang.String key,
java.lang.String value)
VOTableFitsTableWriterVOTableFitsTableWriter implementation tests that
the first four cards read:
SIMPLE = T
BITPIX = 8
NAXIS = 1
NAXIS1 = ???
Subclasses may override this to add tests for later cards
(as written in VOTableFitsTableWriter.customisePrimaryHeader(nom.tam.fits.Header)).isMagic in class VOTableFitsTableWritericard - 0-based card indexkey - card namevalue - card valueprotected uk.ac.starlink.fits.FitsTableSerializer createSerializer(uk.ac.starlink.table.StarTable table)
throws java.io.IOException
createSerializer in class uk.ac.starlink.fits.AbstractFitsTableWriterjava.io.IOExceptionCopyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.