|
||||||||||
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
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 tableMethod Detail |
public int getColumnCount()
StarTable
getColumnCount
in interface StarTable
getColumnCount
in class WrapperStarTable
public ColumnInfo getColumnInfo(int icol)
StarTable
getColumnInfo
in interface StarTable
getColumnInfo
in class WrapperStarTable
public Object getCell(long irow, int icol) throws IOException
StarTable
getCell
in interface StarTable
getCell
in class WrapperStarTable
IOException
public Object[] getRow(long irow) throws IOException
StarTable
getRow
in interface StarTable
getRow
in class WrapperStarTable
IOException
public RowSequence getRowSequence() throws IOException
StarTable
getRowSequence
in interface StarTable
getRowSequence
in class WrapperStarTable
IOException
|
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 |