|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.ac.starlink.table.WrapperStarTable
uk.ac.starlink.table.ExplodedStarTable
public class ExplodedStarTable
Wrapper table which takes any column whose value is N-element arrays and turns it into N scalar-valued columns.
| Field Summary |
|---|
| Fields inherited from class uk.ac.starlink.table.WrapperStarTable |
|---|
baseTable |
| Constructor Summary | |
|---|---|
ExplodedStarTable(StarTable baseTable)
Constructs a table in which all fixed-length array-valued columns are exploded. |
|
ExplodedStarTable(StarTable baseTable,
boolean[] colFlags)
Constructs a table in which specified columns are exploded. |
|
| Method Summary | |
|---|---|
Object |
getCell(long irow,
int icol)
Returns the contents of a given table cell. |
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)
Returns the contents of a given table row. |
RowSequence |
getRowSequence()
Returns an object which can iterate over all the rows in the table sequentially. |
| Methods inherited from class uk.ac.starlink.table.WrapperStarTable |
|---|
checkedLongToInt, getBaseTable, getColumnAuxDataInfos, getName, getParameterByName, getParameters, getRowCount, getURL, isRandom, setName, setParameter, setURL, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ExplodedStarTable(StarTable baseTable,
boolean[] colFlags)
baseTable - base tablecolFlags - array of flags the same length as the number of
columns in baseTable; true elements indicate
columns in the base table which should be exploded
IllegalArgumentException - if any column specified by
colFlags has a type which is not
a fixed-length arraypublic ExplodedStarTable(StarTable baseTable)
baseTable - base table| Method Detail |
|---|
public int getColumnCount()
StarTable
getColumnCount in interface StarTablegetColumnCount in class WrapperStarTablepublic ColumnInfo getColumnInfo(int icol)
StarTable
getColumnInfo in interface StarTablegetColumnInfo in class WrapperStarTableicol - the column for which header information is required
public Object getCell(long irow,
int icol)
throws IOException
StarTable
getCell in interface StarTablegetCell in class WrapperStarTableirow - the index of the cell's rowicol - the index of the cell's column
IOException - if there is an error reading the data
public Object[] getRow(long irow)
throws IOException
StarTable
getRow in interface StarTablegetRow in class WrapperStarTableirow - the index of the row to retrieve
IOException - if there is an error reading the data
public RowSequence getRowSequence()
throws IOException
StarTable
getRowSequence in interface StarTablegetRowSequence in class WrapperStarTableIOException - 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 | ||||||||