|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.ac.starlink.table.Tables
Utility class for miscellaneous table-related functionality.
Constructor Summary | |
Tables()
|
Method Summary | |
static void |
checkTable(StarTable table)
Diagnostic method which tests the invariants of a StarTable. |
static StarTable |
deleteColumn(StarTable startab,
int icol)
Returns a table equivalent to the original but with a given column deleted. |
static ColumnInfo[] |
getColumnInfos(StarTable startab)
Convenience method to return an array of all the column headers in a given table. |
static StarTable |
randomTable(StarTable startab)
Returns a table based on a given table and guaranteed to have random access. |
static void |
streamStarTable(StarTable source,
TableSink sink)
Copies the data and metadata from a StarTable into a table sink. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Tables()
Method Detail |
public static StarTable randomTable(StarTable startab) throws IOException
IOException
public static ColumnInfo[] getColumnInfos(StarTable startab)
startab
- the table being enquired about
public static StarTable deleteColumn(StarTable startab, int icol)
startab
- the table from which to delete a columnicol
- the index of the column to be deleted
IndexOutOfBoundsException
- if startab has no column
at icolpublic static void streamStarTable(StarTable source, TableSink sink) throws IOException
source
- table to be copiedsink
- table destination
IOException
public static void checkTable(StarTable table) throws IOException
That a table passes this test does not guarantee that the table has no bugs. This method should not generally be used in production code, since it may be expensive in time and/or memory.
table
- table to test
AssertionError
- if an invariant is violated
IOException
- if there is an I/O error
|
Copyright © 2004 CLRC: Central Laboratory of the Research Councils. All rights reserved. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |