|
|||||||||
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.ttools.filter.HeadTable
public class HeadTable
Wrapper table implementation which only contains the first N rows of its base table.
Field Summary |
---|
Fields inherited from class uk.ac.starlink.table.WrapperStarTable |
---|
baseTable |
Constructor Summary | |
---|---|
HeadTable(StarTable base,
long nhead)
Constructor. |
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. |
Methods inherited from class uk.ac.starlink.table.WrapperStarTable |
---|
checkedLongToInt, getBaseTable, getColumnAuxDataInfos, getColumnCount, getColumnInfo, getName, getParameterByName, getParameters, 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 HeadTable(StarTable base, long nhead)
base
- base tablenhead
- number of rows at the head of the table to useMethod Detail |
---|
public long getRowCount()
StarTable
getRowCount
in interface StarTable
getRowCount
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |