Package nom.tam.fits
Class BinaryTable.ColumnDesc
java.lang.Object
nom.tam.fits.BinaryTable.ColumnDesc
- All Implemented Interfaces:
Cloneable
- Enclosing class:
- BinaryTable
Collect all of the information we are using to describe a column into a
single object.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate 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 rowprivate int
The size of the column in the type of the column -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Class<?>
getBase()
int[]
(package private) boolean
(package private) boolean
newInstance
(int nRow) int
rowLen()
-
Field Details
-
size
private int sizeThe size of the column in the type of the column -
dimens
private int[] dimensThe dimensions of the column (or just [1] if a scalar) -
base
The underlying class associated with the column. -
model
An example of the kind of data that should be read/written in one row -
isVarying
private boolean isVaryingIs this a variable length column ? -
isLongVary
private boolean isLongVaryIs this a variable length column using longs? [Must have isVarying true too] -
isComplex
private boolean isComplexIs this a complex column. Each entry will be associated with a float[2]/double[2] -
isString
private boolean isStringIs 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 isBooleanIs this a boolean column? Booleans are stored as bytes with the value 'T'/'F' -
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
-
getBase
-
getDimens
public int[] getDimens() -
newInstance
- 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()
-