Package nom.tam.fits

Class BinaryTable.ColumnDesc

java.lang.Object
nom.tam.fits.BinaryTable.ColumnDesc
All Implemented Interfaces:
Cloneable
Enclosing class:
BinaryTable

protected static class BinaryTable.ColumnDesc extends Object implements Cloneable
Collect all of the information we are using to describe a column into a single object.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private Class<?>
    The underlying class associated with the column.
    private Object
    The flattened column data.
    private int[]
    The dimensions of the column (or just [1] if a scalar)
    private boolean
    Is this a boolean column? Booleans are stored as bytes with the value 'T'/'F'
    private boolean
    Is this a complex column.
    private boolean
    Is this a variable length column using longs? [Must have isVarying true too]
    private boolean
    Is this a string column.
    private boolean
    Is this a variable length column ?
    private Object
    An example of the kind of data that should be read/written in one row
    private int
    The size of the column in the type of the column
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    int[]
     
    (package private) boolean
     
    (package private) boolean
     
    newInstance(int nRow)
     
    int
     

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • size

      private int size
      The size of the column in the type of the column
    • dimens

      private int[] dimens
      The dimensions of the column (or just [1] if a scalar)
    • base

      private Class<?> base
      The underlying class associated with the column.
    • model

      private Object model
      An example of the kind of data that should be read/written in one row
    • isVarying

      private boolean isVarying
      Is this a variable length column ?
    • isLongVary

      private boolean isLongVary
      Is this a variable length column using longs? [Must have isVarying true too]
    • isComplex

      private boolean isComplex
      Is this a complex column. Each entry will be associated with a float[2]/double[2]
    • isString

      private boolean isString
      Is this a string column. Strings will normally be converted to fixed length byte arrays with the length given by the longest string.
    • isBoolean

      private boolean isBoolean
      Is this a boolean column? Booleans are stored as bytes with the value 'T'/'F'
    • column

      private Object column
      The flattened column data. This should be nulled when the data is copied into the ColumnTable
  • Constructor Details

    • ColumnDesc

      protected ColumnDesc()
  • Method Details

    • clone

      public Object clone()
      Overrides:
      clone in class Object
    • getBase

      public Class<?> getBase()
    • getDimens

      public int[] getDimens()
    • newInstance

      public Object newInstance(int nRow)
      Parameters:
      nRow - the number of rows to allocate the array for
      Returns:
      new instance of the array with space for the specified number of rows.
    • rowLen

      public int rowLen()
    • isLongVary

      boolean isLongVary()
      Returns:
      Is this a variable length column using longs? [Must have isVarying true too]
    • isVarying

      boolean isVarying()