|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.ac.starlink.table.AbstractStarTable
uk.ac.starlink.table.RandomStarTable
uk.ac.starlink.table.ConstantStarTable
public class ConstantStarTable
Table implementation representing a table in which every row is the same as every other.
| Constructor Summary | |
|---|---|
ConstantStarTable(ColumnInfo[] infos,
java.lang.Object[] cells,
long nrow)
Constructs a new constant star table. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getCell(long lrow,
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. |
long |
getRowCount()
The number of rows in this table. |
boolean |
isRandom()
Returns true. |
| Methods inherited from class uk.ac.starlink.table.RandomStarTable |
|---|
getRowSequence |
| Methods inherited from class uk.ac.starlink.table.AbstractStarTable |
|---|
checkedLongToInt, getColumnAuxDataInfos, getName, getParameterByName, getParameters, getRow, getURL, setName, setParameter, setParameters, setURL |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConstantStarTable(ColumnInfo[] infos,
java.lang.Object[] cells,
long nrow)
infos - array of column metadata objects (one for each column)cells - row data - the same for every rownrow - number of rows in this table| Method Detail |
|---|
public int getColumnCount()
StarTable
getColumnCount in interface StarTablegetColumnCount in class AbstractStarTablepublic ColumnInfo getColumnInfo(int icol)
StarTable
getColumnInfo in interface StarTablegetColumnInfo in class AbstractStarTableicol - the column for which header information is required
public long getRowCount()
RandomStarTable
getRowCount in interface StarTablegetRowCount in class RandomStarTablepublic boolean isRandom()
RandomStarTable
isRandom in interface StarTableisRandom in class RandomStarTable
public java.lang.Object getCell(long lrow,
int icol)
AbstractStarTable
getCell in interface StarTablegetCell in class AbstractStarTablelrow - the index of the cell's rowicol - the index of the cell's column
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||