|
|||||||||
| 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.MetadataStarTable
public class MetadataStarTable
Utility StarTable implementation which contains only metadata, no data.
Suitable for passing to
TableSink.acceptMetadata(uk.ac.starlink.table.StarTable).
| Constructor Summary | |
|---|---|
MetadataStarTable(ColumnInfo[] colInfos)
Constructs a metadata table with given column metadata and an indeterminate number of rows. |
|
MetadataStarTable(ColumnInfo[] colInfos,
long rowCount)
Constructs a metadata table with given column metadata and a given number of rows. |
|
| Method Summary | |
|---|---|
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()
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.AbstractStarTable |
|---|
checkedLongToInt, getCell, getColumnAuxDataInfos, getName, getParameterByName, getParameters, getRow, getURL, isRandom, 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 MetadataStarTable(ColumnInfo[] colInfos)
colInfos - metadata items for each column
public MetadataStarTable(ColumnInfo[] colInfos,
long rowCount)
colInfos - metadata items for each columnrowCount - row count, may be -1 to indicate unknown| Method Detail |
|---|
public ColumnInfo getColumnInfo(int icol)
StarTable
getColumnInfo in interface StarTablegetColumnInfo in class AbstractStarTableicol - the column for which header information is required
public int getColumnCount()
StarTable
getColumnCount in interface StarTablegetColumnCount in class AbstractStarTablepublic RowSequence getRowSequence()
StarTable
getRowSequence in interface StarTablegetRowSequence in class AbstractStarTablepublic long getRowCount()
StarTable
getRowCount in interface StarTablegetRowCount in class AbstractStarTable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||