|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.ac.starlink.table.WrapperStarTable | +--uk.ac.starlink.table.ConcatStarTable
Table representing the concatenation of rows from two tables. The first (base) table provides all the metadata plus the first lot of rows, and the second (secondary) one provides only additional rows. Of course it must be specified which columns in the secondary table correspond to the columns in the base.
Field Summary |
Fields inherited from class uk.ac.starlink.table.WrapperStarTable |
baseTable |
Constructor Summary | |
ConcatStarTable(StarTable base,
StarTable secondary,
int[] colMap)
Constructs a new concatenated table. |
Method Summary | |
Object |
getCell(long irow,
int icol)
Returns the contents of a given table cell. |
Object[] |
getRow(long irow)
Returns the contents of a given table row. |
long |
getRowCount()
Returns the number of rows in this table, if known. |
RowSequence |
getRowSequence()
Returns an object which can iterate over all the rows in the table sequentially. |
boolean |
isRandom()
Indicates whether random access is provided by this table. |
Methods inherited from class uk.ac.starlink.table.WrapperStarTable |
checkedLongToInt, getBaseTable, getColumnAuxDataInfos, getColumnCount, getColumnInfo, getName, getParameterByName, getParameters, getURL |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ConcatStarTable(StarTable base, StarTable secondary, int[] colMap)
colMap[iBase]=iSecondary
means that
the data in column iBase of this table are supplied
from column iSecondary of secondary.
If iSecondary<0 or colMap.length<=iBase
then the cells in column iBase are all null
for the secondary part of the table.
base
- base tablesecondary
- secondary tablecolMap
- mapping of columns in the base to columns in the
secondaryMethod Detail |
public long getRowCount()
StarTable
getRowCount
in interface StarTable
getRowCount
in class WrapperStarTable
public boolean isRandom()
StarTable
StarTable.getRow(long)
and StarTable.getCell(long, int)
methods be used.
isRandom
in interface StarTable
isRandom
in class WrapperStarTable
public Object getCell(long irow, int icol) throws IOException
StarTable
getCell
in interface StarTable
getCell
in class WrapperStarTable
irow
- the index of the cell's rowicol
- the index of the cell's column
IOException
- if there is an error reading the datapublic Object[] getRow(long irow) throws IOException
StarTable
getRow
in interface StarTable
getRow
in class WrapperStarTable
irow
- the index of the row to retrieve
IOException
- if there is an error reading the datapublic RowSequence getRowSequence() throws IOException
StarTable
getRowSequence
in interface StarTable
getRowSequence
in class WrapperStarTable
IOException
- if there is an error providing access
|
Copyright © 2004 CLRC: Central Laboratory of the Research Councils. All rights reserved. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |