|
|||||||||
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.EmptyStarTable
public class EmptyStarTable
A wrapper table which has the same metadata as its base table, but no rows.
Field Summary |
---|
Fields inherited from class uk.ac.starlink.table.WrapperStarTable |
---|
baseTable |
Constructor Summary | |
---|---|
EmptyStarTable()
Creates a new empty table with no columns, no rows and no parameters. |
|
EmptyStarTable(StarTable baseTable)
Creates a new empty table with metadata taken from an existing one. |
Method Summary | |
---|---|
java.lang.Object |
getCell(long lrow,
int icol)
Returns the contents of a given table cell. |
java.lang.Object[] |
getRow(long lrow)
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, setName, setParameter, setURL, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EmptyStarTable(StarTable baseTable)
baseTable
- base tablepublic EmptyStarTable()
Method Detail |
---|
public boolean isRandom()
StarTable
StarTable.getRow(long)
and StarTable.getCell(long, int)
methods be used.
isRandom
in interface StarTable
isRandom
in class WrapperStarTable
public long getRowCount()
StarTable
getRowCount
in interface StarTable
getRowCount
in class WrapperStarTable
public java.lang.Object getCell(long lrow, int icol)
StarTable
getCell
in interface StarTable
getCell
in class WrapperStarTable
lrow
- the index of the cell's rowicol
- the index of the cell's column
public java.lang.Object[] getRow(long lrow)
StarTable
getRow
in interface StarTable
getRow
in class WrapperStarTable
lrow
- the index of the row to retrieve
public RowSequence getRowSequence()
StarTable
getRowSequence
in interface StarTable
getRowSequence
in class WrapperStarTable
|
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 |