Package uk.ac.starlink.topcat
Class PlasticStarTable
java.lang.Object
uk.ac.starlink.table.AbstractStarTable
uk.ac.starlink.table.RandomStarTable
uk.ac.starlink.table.ColumnStarTable
uk.ac.starlink.topcat.PlasticStarTable
- All Implemented Interfaces:
Closeable,AutoCloseable,uk.ac.starlink.table.StarTable
public class PlasticStarTable
extends uk.ac.starlink.table.ColumnStarTable
A StarTable which is initialised from an existing table but can have
columns added to it. Currently, this table cannot have its number
of rows changed.
-
Field Summary
Fields inherited from class uk.ac.starlink.table.ColumnStarTable
columns_ -
Constructor Summary
ConstructorsConstructorDescriptionPlasticStarTable(uk.ac.starlink.table.StarTable baseTable) Constructs aPlasticStarTablebased on an existingStarTableobject. -
Method Summary
Methods inherited from class uk.ac.starlink.table.ColumnStarTable
getCell, getColumnCount, getColumnData, getColumnInfo, makeTableWithRows, setCellMethods inherited from class uk.ac.starlink.table.RandomStarTable
getRowAccess, getRowSequence, isRandomMethods inherited from class uk.ac.starlink.table.AbstractStarTable
checkedLongToInt, close, getColumnAuxDataInfos, getName, getParameters, getRow, getRowSplittable, getURL, setName, setParameters, setURLMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface uk.ac.starlink.table.StarTable
getParameterByName, setParameter
-
Constructor Details
-
PlasticStarTable
public PlasticStarTable(uk.ac.starlink.table.StarTable baseTable) Constructs aPlasticStarTablebased on an existingStarTableobject. The metadata are copied from the base table and ColumnData objects constructed to wrap each of its columns.- Parameters:
baseTable- the table to initialise this one from
-
-
Method Details
-
getRowCount
public long getRowCount()- Specified by:
getRowCountin interfaceuk.ac.starlink.table.StarTable- Specified by:
getRowCountin classuk.ac.starlink.table.ColumnStarTable
-
addColumn
public void addColumn(uk.ac.starlink.table.ColumnData coldata) - Overrides:
addColumnin classuk.ac.starlink.table.ColumnStarTable
-
setColumn
public void setColumn(int icol, uk.ac.starlink.table.ColumnData coldata) - Overrides:
setColumnin classuk.ac.starlink.table.ColumnStarTable
-
getBaseTable
public uk.ac.starlink.table.StarTable getBaseTable()Returns the StarTable table on which this PlasticStarTable is based.- Returns:
- base table
-