StarTable
public class MetadataStarTable extends AbstractStarTable
TableSink.acceptMetadata(uk.ac.starlink.table.StarTable)
.Constructor | Description |
---|---|
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.
|
Modifier and Type | Method | Description |
---|---|---|
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.
|
checkedLongToInt, getCell, getColumnAuxDataInfos, getName, getParameterByName, getParameters, getRow, getURL, isRandom, setName, setParameter, setParameters, setURL
public MetadataStarTable(ColumnInfo[] colInfos)
colInfos
- metadata items for each columnpublic MetadataStarTable(ColumnInfo[] colInfos, long rowCount)
colInfos
- metadata items for each columnrowCount
- row count, may be -1 to indicate unknownpublic ColumnInfo getColumnInfo(int icol)
StarTable
getColumnInfo
in interface StarTable
getColumnInfo
in class AbstractStarTable
icol
- the column for which header information is requiredpublic int getColumnCount()
StarTable
getColumnCount
in interface StarTable
getColumnCount
in class AbstractStarTable
public RowSequence getRowSequence()
StarTable
getRowSequence
in interface StarTable
getRowSequence
in class AbstractStarTable
public long getRowCount()
StarTable
getRowCount
in interface StarTable
getRowCount
in class AbstractStarTable
Copyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.