StarTable
public class ConstantStarTable extends RandomStarTable
Constructor | Description |
---|---|
ConstantStarTable(ColumnInfo[] infos,
java.lang.Object[] cells,
long nrow) |
Constructs a new constant star table.
|
Modifier and Type | Method | Description |
---|---|---|
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.
|
checkedLongToInt, getColumnAuxDataInfos, getName, getParameterByName, getParameters, getRow, getURL, setName, setParameter, setParameters, setURL
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRowSequence
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 tablepublic int getColumnCount()
StarTable
getColumnCount
in interface StarTable
getColumnCount
in class AbstractStarTable
public ColumnInfo getColumnInfo(int icol)
StarTable
getColumnInfo
in interface StarTable
getColumnInfo
in class AbstractStarTable
icol
- the column for which header information is requiredpublic long getRowCount()
RandomStarTable
getRowCount
in interface StarTable
getRowCount
in class RandomStarTable
public boolean isRandom()
RandomStarTable
isRandom
in interface StarTable
isRandom
in class RandomStarTable
public java.lang.Object getCell(long lrow, int icol)
AbstractStarTable
getCell
in interface StarTable
getCell
in class AbstractStarTable
lrow
- the index of the cell's rowicol
- the index of the cell's columnCopyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.