public class SkycatTable extends MemoryCatalog
DEC_COL, EQUINOX, ID_COL, RA_COL, SYMBOL, X_COL, Y_COL
columnIdentifiers, dataVector
listenerList
ARCHIVE, CATALOG, DIRECTORY, IMAGE_SERVER, LOCAL, NAME_SERVER
Modifier | Constructor and Description |
---|---|
protected |
SkycatTable()
Construct a new SkycatTable with no header or data
(For use only by derived classes).
|
|
SkycatTable(SkycatCatalog catalog,
InputStream in)
Initialize the table from the given stream.
|
|
SkycatTable(SkycatCatalog catalog,
InputStream in,
int maxRows)
Initialize the table from the given stream by reading up to
maxRows of the data.
|
|
SkycatTable(SkycatCatalog catalog,
InputStream in,
QueryArgs queryArgs)
Initialize the table from the given stream by reading up to
maxRows of the data.
|
|
SkycatTable(SkycatCatalog catalog,
String filename)
Initialize the table from the given file.
|
|
SkycatTable(SkycatConfigEntry configEntry,
Vector dataRows,
FieldDesc[] fields)
Construct a new SkycatTable with the given data.
|
|
SkycatTable(SkycatConfigFile cf,
String filename)
Initialize the table from the given file
|
protected |
SkycatTable(SkycatTable table,
FieldDesc[] fields,
Vector dataRows)
Construct a new SkycatTable with the given column fields and data rows
(For internal use only).
|
|
SkycatTable(String filename)
Initialize the table from the given file
|
Modifier and Type | Method and Description |
---|---|
protected void |
_saveProperties(PrintStream out)
Save the table header (part before the column headings)
to the given PrintStream.
|
protected void |
checkProperties()
If no properties were defined in the header, add the default
settings
|
Catalog |
getCatalog()
Return the catalog used to create this table,
or a dummy, generated catalog object, if not known.
|
SkycatConfigEntry |
getConfigEntry()
Return the object used to manage the configuration info for this catalog
|
static void |
main(String[] args)
Test cases
|
protected MemoryCatalog |
makeQueryResult(FieldDesc[] fields,
Vector dataRows)
Return a new MemoryCatalog with the given column fields and data rows.
|
void |
setConfigEntry(SkycatConfigEntry entry)
Set the object used to manage the configuration info for this catalog.
|
_checkColumnClass, _init, _initColumnClasses, _initFields, _parseHeading, _parseItem, _parseProperty, _parseRow, _saveHeader, addRow, clone, compareRow, getColumnClass, getColumnClasses, getColumnDesc, getColumnIdentifiers, getColumnIndex, getColumnName, getCoordinates, getDescription, getDocURL, getFields, getFilename, getId, getName, getNumColumns, getNumParams, getParamDesc, getParamDesc, getParent, getPath, getProperties, getProperty, getQueryArgs, getRowCoordinates, getTitle, getType, getValueAt, getWCSCenter, hasCol, hasCoordinates, isCellEditable, isImageServer, isLocal, isMore, isReadOnly, makeColumnIdentifiers, print, query, saveAs, saveAs, saveAsHTML, setCatalog, setColumnClasses, setColumnIdentifiers, setDescription, setDocURL, setFields, setFilename, setId, setMore, setName, setParent, setProperties, setProperty, setQueryArgs, setReadOnly, setRegionArgs, setRowCoordinates, setTitle, sort, toString
addColumn, addColumn, addColumn, addRow, convertToVector, convertToVector, getColumnCount, getDataVector, getRowCount, getValueAt, insertRow, insertRow, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount, setValueAt
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDataVector
addTableModelListener, getColumnCount, getRowCount, getValueAt, removeTableModelListener, setValueAt
public SkycatTable(SkycatCatalog catalog, InputStream in, int maxRows) throws IOException
catalog
- the catalog where the data originated, if knownin
- the stream to read the catalog data frommaxRows
- the maximum number of data rows to readIOException
public SkycatTable(SkycatCatalog catalog, InputStream in, QueryArgs queryArgs) throws IOException
catalog
- the catalog where the data originated, if knownin
- the stream to read the catalog data fromqueryArgs
- represents the arguments to the query that resulted in this tableIOException
public SkycatTable(SkycatCatalog catalog, InputStream in) throws IOException
catalog
- the catalog where the data originated, if knownin
- the stream to read the catalog data fromIOException
public SkycatTable(SkycatCatalog catalog, String filename) throws IOException
catalog
- the catalog where the data originated, if knownfilename
- the name of the catalog fileIOException
public SkycatTable(SkycatConfigFile cf, String filename) throws IOException
cf
- a reference to a skycat config file object (may be used later to search for a name server)filename
- the name of the catalog fileIOException
public SkycatTable(String filename) throws IOException
IOException
public SkycatTable(SkycatConfigEntry configEntry, Vector dataRows, FieldDesc[] fields)
configEntry
- a config entry describing the tabledataVector
- a vector of data rows, each of which is a vector of column values.fields
- an array of objects describing the table columnsprotected SkycatTable(SkycatTable table, FieldDesc[] fields, Vector dataRows)
table
- the source catalog tablefields
- an array of objects describing the table columnsdataVector
- a vector of data rows, each of which is a vector of column values.protected SkycatTable()
public Catalog getCatalog()
getCatalog
in interface TableQueryResult
getCatalog
in class MemoryCatalog
public SkycatConfigEntry getConfigEntry()
public void setConfigEntry(SkycatConfigEntry entry)
protected void checkProperties()
protected MemoryCatalog makeQueryResult(FieldDesc[] fields, Vector dataRows)
makeQueryResult
in class MemoryCatalog
fields
- an array of objects describing the table columnsdataVector
- a vector of data rows, each of which is a vector of column values.protected void _saveProperties(PrintStream out)
_saveProperties
in class MemoryCatalog
public static void main(String[] args)
Copyright © 2023 Central Laboratory of the Research Councils. All Rights Reserved.