Package uk.ac.starlink.ttools.filter
Class AddColumnsTable
- java.lang.Object
-
- uk.ac.starlink.table.WrapperStarTable
-
- uk.ac.starlink.ttools.filter.AddColumnsTable
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,uk.ac.starlink.table.StarTable
public class AddColumnsTable extends uk.ac.starlink.table.WrapperStarTableWrapper table which adds another table to it by placing all the columns of the added table together with the existing columns. The added columns may be placed anywhere, but they stay together. Table metadata is just that of the base table.- Since:
- 2 Dec 2011
- Author:
- Mark Taylor
-
-
Constructor Summary
Constructors Constructor Description AddColumnsTable(uk.ac.starlink.table.StarTable baseTable, ColumnSupplement colSup)Constructs a table in which the added columns come after all the columns of the base table.AddColumnsTable(uk.ac.starlink.table.StarTable baseTable, ColumnSupplement colSup, int ipos)Constructs a table in which the added columns are placed at a given position.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetCell(long irow, int icol)intgetColumnCount()uk.ac.starlink.table.ColumnInfogetColumnInfo(int icol)java.lang.Object[]getRow(long irow)uk.ac.starlink.table.RowAccessgetRowAccess()uk.ac.starlink.table.RowSequencegetRowSequence()uk.ac.starlink.table.RowSplittablegetRowSplittable()
-
-
-
Constructor Detail
-
AddColumnsTable
public AddColumnsTable(uk.ac.starlink.table.StarTable baseTable, ColumnSupplement colSup, int ipos)Constructs a table in which the added columns are placed at a given position.- Parameters:
baseTable- base tablecolSup- object supplying columns to be addedipos- column index within the output table at which the firstcolSupcolumn should appear
-
AddColumnsTable
public AddColumnsTable(uk.ac.starlink.table.StarTable baseTable, ColumnSupplement colSup)Constructs a table in which the added columns come after all the columns of the base table.- Parameters:
baseTable- base tablecolSup- object supplying columns to be added
-
-
Method Detail
-
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCountin interfaceuk.ac.starlink.table.StarTable- Overrides:
getColumnCountin classuk.ac.starlink.table.WrapperStarTable
-
getColumnInfo
public uk.ac.starlink.table.ColumnInfo getColumnInfo(int icol)
- Specified by:
getColumnInfoin interfaceuk.ac.starlink.table.StarTable- Overrides:
getColumnInfoin classuk.ac.starlink.table.WrapperStarTable
-
getCell
public java.lang.Object getCell(long irow, int icol) throws java.io.IOException- Specified by:
getCellin interfaceuk.ac.starlink.table.StarTable- Overrides:
getCellin classuk.ac.starlink.table.WrapperStarTable- Throws:
java.io.IOException
-
getRow
public java.lang.Object[] getRow(long irow) throws java.io.IOException- Specified by:
getRowin interfaceuk.ac.starlink.table.StarTable- Overrides:
getRowin classuk.ac.starlink.table.WrapperStarTable- Throws:
java.io.IOException
-
getRowSequence
public uk.ac.starlink.table.RowSequence getRowSequence() throws java.io.IOException- Specified by:
getRowSequencein interfaceuk.ac.starlink.table.StarTable- Overrides:
getRowSequencein classuk.ac.starlink.table.WrapperStarTable- Throws:
java.io.IOException
-
getRowAccess
public uk.ac.starlink.table.RowAccess getRowAccess() throws java.io.IOException- Specified by:
getRowAccessin interfaceuk.ac.starlink.table.StarTable- Overrides:
getRowAccessin classuk.ac.starlink.table.WrapperStarTable- Throws:
java.io.IOException
-
getRowSplittable
public uk.ac.starlink.table.RowSplittable getRowSplittable() throws java.io.IOException- Specified by:
getRowSplittablein interfaceuk.ac.starlink.table.StarTable- Overrides:
getRowSplittablein classuk.ac.starlink.table.WrapperStarTable- Throws:
java.io.IOException
-
-