public class MetadataStarTable extends AbstractStarTable
TableSink.acceptMetadata(uk.ac.starlink.table.StarTable)
.Constructor and 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 and 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.
|
RowAccess |
getRowAccess()
Returns an object which can provide random access to this
table's data, if random access is implemented.
|
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.
|
RowSplittable |
getRowSplittable()
Returns a default splittable which relies on table random access
if available, or otherwise provides only sequential access (no splits).
|
checkedLongToInt, close, getCell, getColumnAuxDataInfos, getName, getParameters, getRow, getURL, isRandom, setName, setParameters, setURL
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getParameterByName, setParameter
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 requiredicol
public int getColumnCount()
StarTable
getColumnCount
in interface StarTable
getColumnCount
in class AbstractStarTable
public RowSequence getRowSequence()
StarTable
getRowSequence
in interface StarTable
getRowSequence
in class AbstractStarTable
public RowAccess getRowAccess()
StarTable
getRowAccess
in interface StarTable
getRowAccess
in class AbstractStarTable
public RowSplittable getRowSplittable()
AbstractStarTable
It is often possible to provide a better implementation than this.
getRowSplittable
in interface StarTable
getRowSplittable
in class AbstractStarTable
Tables.getDefaultRowSplittable(this)
RowRunner
public long getRowCount()
StarTable
getRowCount
in interface StarTable
getRowCount
in class AbstractStarTable
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.