Class VariableFitsTableSerializer

  • All Implemented Interfaces:
    FitsTableSerializer

    public class VariableFitsTableSerializer
    extends StandardFitsTableSerializer
    FitsTableSerializer which can write variable array-valued columns using the 'P' or 'Q' TFORM formatting characters.
    Since:
    10 Jul 2008
    Author:
    Mark Taylor
    • Constructor Detail

      • VariableFitsTableSerializer

        public VariableFitsTableSerializer​(FitsTableSerializerConfig config,
                                           uk.ac.starlink.table.StarTable table,
                                           uk.ac.starlink.table.StoragePolicy storagePolicy)
                                    throws java.io.IOException
        Constructor.
        Parameters:
        config - FITS configuration
        table - table to write
        storagePolicy - policy for acquiring byte array scratch buffers
        Throws:
        java.io.IOException - if it won't be possible to write the given table
    • Method Detail

      • set64BitMode

        public void set64BitMode​(boolean useQ)
        Sets whether this serializer should use the 'P' descriptor (32-bit addressing into the heap) or the 'Q' descriptor (64-bit addressing into the heap) for variable-length array columns. Normally Q is only used if the heap is larger than 2^31.
        Parameters:
        useQ - true for Q, false for P