Package nom.tam.fits
Class BinaryTable.ColumnDesc
- java.lang.Object
-
- nom.tam.fits.BinaryTable.ColumnDesc
-
- All Implemented Interfaces:
java.lang.Cloneable
- Enclosing class:
- BinaryTable
protected static class BinaryTable.ColumnDesc extends java.lang.Object implements java.lang.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 java.lang.Class<?>
base
The underlying class associated with the column.private java.lang.Object
column
The flattened column data.private int[]
dimens
The dimensions of the column (or just [1] if a scalar)private boolean
isBoolean
Is this a boolean column? Booleans are stored as bytes with the value 'T'/'F'private boolean
isComplex
Is this a complex column.private boolean
isLongVary
Is this a variable length column using longs? [Must have isVarying true too]private boolean
isString
Is this a string column.private boolean
isVarying
Is this a variable length column ?private java.lang.Object
model
An example of the kind of data that should be read/written in one rowprivate int
size
The size of the column in the type of the column
-
Constructor Summary
Constructors Modifier Constructor Description protected
ColumnDesc()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
java.lang.Class<?>
getBase()
int[]
getDimens()
(package private) boolean
isLongVary()
(package private) boolean
isVarying()
java.lang.Object
newInstance(int nRow)
int
rowLen()
-
-
-
Field Detail
-
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 java.lang.Class<?> base
The underlying class associated with the column.
-
model
private java.lang.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 java.lang.Object column
The flattened column data. This should be nulled when the data is copied into the ColumnTable
-
-
Method Detail
-
clone
public java.lang.Object clone()
- Overrides:
clone
in classjava.lang.Object
-
getBase
public java.lang.Class<?> getBase()
-
getDimens
public int[] getDimens()
-
newInstance
public java.lang.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()
-
-