public abstract class AbstractStarTable extends java.lang.Object implements StarTable
| Constructor and Description |
|---|
AbstractStarTable() |
| Modifier and Type | Method and Description |
|---|---|
static int |
checkedLongToInt(long lval)
Convenience method to get an int value from a long.
|
java.lang.Object |
getCell(long irow,
int icol)
The AbstractStarTable implementation of this method throws an
UnsupportedOperationException, since unless otherwise
provided there is no random access.
|
java.util.List<ValueInfo> |
getColumnAuxDataInfos()
Goes through the table columns (ColumnInfo objects)
and picks out all the AuxData items which exist, generalising
where necessary and returning a union of them in
alphabetical order by name.
|
abstract int |
getColumnCount()
Returns the number of columns in this table.
|
abstract ColumnInfo |
getColumnInfo(int icol)
Returns the object describing the data in a given column.
|
java.lang.String |
getName()
Returns the name of this table, if it has one.
|
DescribedValue |
getParameterByName(java.lang.String parname)
Returns a parameter (table-wide metadata item) of this table located
by its name.
|
java.util.List<DescribedValue> |
getParameters()
Returns a list of table parameters, that is metadata items
which pertain to the entire table.
|
java.lang.Object[] |
getRow(long irow)
The AbstractStarTable implementation of this method
constructs a row by repeated invocation of
getCell(long, int). |
abstract long |
getRowCount()
Returns the number of rows in this table, if known.
|
abstract RowSequence |
getRowSequence()
Returns an object which can iterate over all the rows in the table
sequentially.
|
java.net.URL |
getURL()
Returns the URL of this table, if it has one.
|
boolean |
isRandom()
The AbstractStarTable implementation of this method
returns false.
|
void |
setName(java.lang.String name)
Sets the name for this table.
|
void |
setParameter(DescribedValue dval)
Adds the given DescribedValue to the list of parameter metadata objects
associated with this table.
|
void |
setParameters(java.util.List<DescribedValue> parameters)
Sets the list of table parameters, that is items which pertain
to the entire table.
|
void |
setURL(java.net.URL url)
Sets the URL for this table.
|
public java.util.List<ValueInfo> getColumnAuxDataInfos()
getColumnAuxDataInfos in interface StarTableColumnInfo.getAuxData()public java.util.List<DescribedValue> getParameters()
StarTablegetParameters in interface StarTablepublic void setParameters(java.util.List<DescribedValue> parameters)
DescribedValue object.parameters - a List of DescribedValues pertaining
to this tablepublic void setParameter(DescribedValue dval)
StarTablesetParameter in interface StarTabledval - the new parameter datum to addpublic java.lang.String getName()
StarTablepublic void setName(java.lang.String name)
public java.net.URL getURL()
StarTablepublic void setURL(java.net.URL url)
public DescribedValue getParameterByName(java.lang.String parname)
StarTablegetParameterByName in interface StarTableparname - the name of the table parameter requiredpublic static int checkedLongToInt(long lval)
Tables.checkedLongToInt(long).public boolean isRandom()
public java.lang.Object getCell(long irow,
int icol)
throws java.io.IOException
public java.lang.Object[] getRow(long irow)
throws java.io.IOException
getCell(long, int).public abstract ColumnInfo getColumnInfo(int icol)
StarTablegetColumnInfo in interface StarTableicol - the column for which header information is requiredpublic abstract int getColumnCount()
StarTablegetColumnCount in interface StarTablepublic abstract long getRowCount()
StarTablegetRowCount in interface StarTablepublic abstract RowSequence getRowSequence() throws java.io.IOException
StarTablegetRowSequence in interface StarTablejava.io.IOException - if there is an error providing access