public class ConstantStarTable extends RandomStarTable
Constructor and Description |
---|
ConstantStarTable(ColumnInfo[] infos,
java.lang.Object[] cells,
long nrow)
Constructs a new constant star table.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getCell(long lrow,
int icol)
Implementations of this method must be safe for concurrent calls
from multiple threads.
|
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()
Implementations must supply a non-negative return value.
|
boolean |
isRandom()
Returns true.
|
getRowAccess, getRowSequence
checkedLongToInt, close, getColumnAuxDataInfos, getName, getParameters, getRow, getRowSplittable, getURL, setName, setParameters, setURL
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getParameterByName, setParameter
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 requiredicol
public 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)
RandomStarTable
getCell
in interface StarTable
getCell
in class RandomStarTable
lrow
- the index of the cell's rowicol
- the index of the cell's column