Package nom.tam.image.compression.hdu
Class CompressedTableData
- java.lang.Object
-
- nom.tam.fits.Data
-
- nom.tam.fits.AbstractTableData
-
- nom.tam.fits.BinaryTable
-
- nom.tam.image.compression.hdu.CompressedTableData
-
- All Implemented Interfaces:
FitsElement,TableData
public class CompressedTableData extends BinaryTable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class nom.tam.fits.BinaryTable
BinaryTable.ColumnDesc, BinaryTable.SaveState
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String[]columnCompressionAlgorithmsprivate introwsPerTileprivate java.util.List<BinaryTableTile>tiles-
Fields inherited from class nom.tam.fits.Data
dataSize, fileOffset, input
-
-
Constructor Summary
Constructors Constructor Description CompressedTableData()CompressedTableData(Header header)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BinaryTableasBinaryTable(BinaryTable dataToFill, Header compressedHeader, Header targetHeader)voidcompress(Header header)voidfillHeader(Header h)Update a FITS header to reflect the current state of the data.protected intgetRowsPerTile()voidprepareUncompressedData(ColumnTable<BinaryTable.SaveState> data)protected voidsetColumnCompressionAlgorithms(java.lang.String[] columnCompressionAlgorithms)protected CompressedTableDatasetRowsPerTile(int value)-
Methods inherited from class nom.tam.fits.BinaryTable
addByteVaryingColumn, addColumn, addFlattenedColumn, addRow, createColumnDataFor, createColumnTable, deleteColumns, deleteRows, getBases, getColumn, getData, getDimens, getElement, getFlatColumns, getFlattenedColumn, getHeapOffset, getHeapSize, getModelRow, getNCols, getNRows, getRawElement, getRow, getSizes, getTDims, getTrueSize, getTypes, read, readHeap, readTrueData, setColumn, setElement, setFlattenedColumn, setRow, updateAfterDelete, validColumn, validRow, write
-
Methods inherited from class nom.tam.fits.Data
getFileOffset, getKernel, getSize, reset, rewrite, rewriteable, setFileOffset
-
-
-
-
Field Detail
-
rowsPerTile
private int rowsPerTile
-
tiles
private java.util.List<BinaryTableTile> tiles
-
columnCompressionAlgorithms
private java.lang.String[] columnCompressionAlgorithms
-
-
Constructor Detail
-
CompressedTableData
public CompressedTableData()
-
CompressedTableData
public CompressedTableData(Header header) throws FitsException
- Throws:
FitsException
-
-
Method Detail
-
compress
public void compress(Header header) throws FitsException
- Throws:
FitsException
-
fillHeader
public void fillHeader(Header h) throws FitsException
Description copied from class:BinaryTableUpdate a FITS header to reflect the current state of the data. * @throws FitsException if the operation failed- Overrides:
fillHeaderin classBinaryTable- Parameters:
h- header to fill with the data from the current data object- Throws:
FitsException- if the operation fails
-
prepareUncompressedData
public void prepareUncompressedData(ColumnTable<BinaryTable.SaveState> data) throws FitsException
- Throws:
FitsException
-
asBinaryTable
protected BinaryTable asBinaryTable(BinaryTable dataToFill, Header compressedHeader, Header targetHeader) throws FitsException
- Throws:
FitsException
-
getRowsPerTile
protected int getRowsPerTile()
-
setColumnCompressionAlgorithms
protected void setColumnCompressionAlgorithms(java.lang.String[] columnCompressionAlgorithms)
-
setRowsPerTile
protected CompressedTableData setRowsPerTile(int value)
-
-