Class MetaCopyStarTable
java.lang.Object
uk.ac.starlink.table.WrapperStarTable
uk.ac.starlink.table.MetaCopyStarTable
- All Implemented Interfaces:
Closeable, AutoCloseable, StarTable
Wrapper table which makes deep copies of the table metadata,
including column metadata and table parameters.
Changes can safely be made to the metadata of this table without
affecting the base table.
Note that the metadata will not track changes in the column count
of the base table.
- Since:
- 23 Jul 2010
- Author:
- Mark Taylor
-
Field Summary
Fields inherited from class WrapperStarTable
baseTable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetColumnInfo(int icol) Returns the object describing the data in a given column.getName()Returns the name of this table, if it has one.getParameterByName(String name) Returns a parameter (table-wide metadata item) of this table located by its name.Returns a list of table parameters, that is metadata items which pertain to the entire table.getURL()Initially returnsnullto indicate that this table itself is not persistent.voidsetColumnInfo(int icol, ColumnInfo colInfo) voidSets the name of this table.voidsetParameter(DescribedValue dval) Adds the given DescribedValue to the list of parameter metadata objects associated with this table.voidsetParameters(List<DescribedValue> paramList) voidSets the URL of this table.Methods inherited from class WrapperStarTable
checkedLongToInt, close, getBaseTable, getCell, getColumnAuxDataInfos, getColumnCount, getRow, getRowAccess, getRowCount, getRowSequence, getRowSplittable, isRandom, toString
-
Constructor Details
-
MetaCopyStarTable
-
-
Method Details
-
getName
Description copied from interface:StarTableReturns the name of this table, if it has one. The meaning of the name is not defined, but it will typically be a short string of text indicating the identity of this table.- Specified by:
getNamein interfaceStarTable- Overrides:
getNamein classWrapperStarTable- Returns:
- a name for this table, or
nullif no suitable one exists
-
setName
Description copied from interface:StarTableSets the name of this table. If called, the suppliednameshould provide the return value for subsequent calls ofStarTable.getName().- Specified by:
setNamein interfaceStarTable- Overrides:
setNamein classWrapperStarTable- Parameters:
name- table name
-
getURL
Description copied from class:WrapperStarTableInitially returnsnullto indicate that this table itself is not persistent.- Specified by:
getURLin interfaceStarTable- Overrides:
getURLin classWrapperStarTable- Returns:
- the URL of this table, or
nullif none is known
-
setURL
Description copied from interface:StarTableSets the URL of this table. It ought to be possible in principle to reconstruct this table by reading the resource aturl. If called, the suppliedurlshould provide the return value for subsequent calls ofStarTable.getURL().- Specified by:
setURLin interfaceStarTable- Overrides:
setURLin classWrapperStarTable- Parameters:
url- table URL
-
getParameters
Description copied from interface:StarTableReturns a list of table parameters, that is metadata items which pertain to the entire table.- Specified by:
getParametersin interfaceStarTable- Overrides:
getParametersin classWrapperStarTable- Returns:
- a
ListofDescribedValueobjects constituting table-wide metadata not covered elsewhere in this interface
-
setParameters
-
getParameterByName
Description copied from interface:StarTableReturns a parameter (table-wide metadata item) of this table located by its name. If more than one parameter with the given name exists, an arbitrary one will be returned. If no parameter with the given name exists,nullwill be returned.- Specified by:
getParameterByNamein interfaceStarTable- Overrides:
getParameterByNamein classWrapperStarTable- Parameters:
name- the name of the table parameter required
-
setParameter
Description copied from interface:StarTableAdds the given DescribedValue to the list of parameter metadata objects associated with this table. If an item in the parameter list with the same name as the supplied value already exists, it is removed from the list.- Specified by:
setParameterin interfaceStarTable- Overrides:
setParameterin classWrapperStarTable- Parameters:
dval- the new parameter datum to add
-
getColumnInfo
Description copied from interface:StarTableReturns the object describing the data in a given column.- Specified by:
getColumnInfoin interfaceStarTable- Overrides:
getColumnInfoin classWrapperStarTable- Parameters:
icol- the column for which header information is required- Returns:
- a ValueInfo object for column
icol
-
setColumnInfo
-