public class JoinStarTable extends AbstractStarTable
While this table is active, the columns that the constituent tables had at the time of its construction shouldn't change their characteristics in incompatible ways or disappear. It's OK to add new columns though.
| Constructor and Description |
|---|
JoinStarTable(StarTable[] tables)
Constructs a new JoinStarTable from a list of constituent tables.
|
JoinStarTable(StarTable[] tables,
JoinFixAction[] fixCols)
Constructs a new JoinStarTable from a list of constituent tables,
optionally renaming duplicated column names.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes all the constituent tables.
|
Object |
getCell(long irow,
int icol)
The
AbstractStarTable implementation of this method
throws an UnsupportedOperationException,
since unless otherwise provided there is no random access. |
int |
getColumnCount()
Returns the number of columns in this table.
|
ColumnInfo |
getColumnInfo(int icol)
Returns the object describing the data in a given column.
|
Object[] |
getRow(long irow)
The
AbstractStarTable implementation of this method
constructs a row by repeated invocation of AbstractStarTable.getCell(long, int). |
RowAccess |
getRowAccess()
Returns an object which can provide random access to this
table's data, if random access is implemented.
|
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.
|
List<StarTable> |
getTables()
Returns an unmodifiable list of the constituent tables providing the
base data for this join table.
|
boolean |
isRandom()
The
AbstractStarTable implementation of this method
returns false. |
checkedLongToInt, getColumnAuxDataInfos, getName, getParameters, getRowSplittable, getURL, setName, setParameters, setURLclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetParameterByName, setParameterpublic JoinStarTable(StarTable[] tables, JoinFixAction[] fixCols)
tables - array of constituent table objects providing the
data and metadata for a new joined tablefixCols - actions to be taken in modifying column names from
the originals (may be null for no action)public JoinStarTable(StarTable[] tables)
tables - array of constituent table objects providing the
data and metadata for a new joined tablepublic List<StarTable> getTables()
public int getColumnCount()
StarTablegetColumnCount in interface StarTablegetColumnCount in class AbstractStarTablepublic long getRowCount()
StarTablegetRowCount in interface StarTablegetRowCount in class AbstractStarTablepublic ColumnInfo getColumnInfo(int icol)
StarTablegetColumnInfo in interface StarTablegetColumnInfo in class AbstractStarTableicol - the column for which header information is requiredicolpublic boolean isRandom()
AbstractStarTableAbstractStarTable implementation of this method
returns false.isRandom in interface StarTableisRandom in class AbstractStarTabletrue if table random access methods are availablepublic Object getCell(long irow, int icol) throws IOException
AbstractStarTableAbstractStarTable implementation of this method
throws an UnsupportedOperationException,
since unless otherwise provided there is no random access.getCell in interface StarTablegetCell in class AbstractStarTableirow - the index of the cell's rowicol - the index of the cell's columnIOException - if there is an error reading the datapublic Object[] getRow(long irow) throws IOException
AbstractStarTableAbstractStarTable implementation of this method
constructs a row by repeated invocation of AbstractStarTable.getCell(long, int).getRow in interface StarTablegetRow in class AbstractStarTableirow - the index of the row to retrieveirowIOException - if there is an error reading the datapublic RowSequence getRowSequence() throws IOException
StarTablegetRowSequence in interface StarTablegetRowSequence in class AbstractStarTableIOException - if there is an error providing accesspublic RowAccess getRowAccess() throws IOException
StarTablegetRowAccess in interface StarTablegetRowAccess in class AbstractStarTableIOException - if there is an error setting up accesspublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface StarTableclose in class AbstractStarTableIOExceptionCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.