public class PostgresAsciiStarTable
extends uk.ac.starlink.table.formats.StreamStarTable
Constructor | Description |
---|---|
PostgresAsciiStarTable(uk.ac.starlink.util.DataSource datsrc,
java.net.URL schemaUrl) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
protected uk.ac.starlink.table.formats.RowEvaluator.Metadata |
obtainMetadata() |
Obtains metadata for the table by reading the schema provided at
construction time.
|
protected java.util.List |
readRow(java.io.PushbackInputStream in) |
|
protected uk.ac.starlink.table.formats.RowEvaluator.Metadata |
readSchema(java.io.InputStream in) |
Given a PostgreSQL/2MASS-type schema file, works out what the
column metadata will look like for each column of the table.
|
checkedLongToInt, getCell, getColumnAuxDataInfos, getName, getParameterByName, getParameters, getRow, getURL, isRandom, setName, setParameter, setParameters, setURL
public PostgresAsciiStarTable(uk.ac.starlink.util.DataSource datsrc, java.net.URL schemaUrl) throws java.io.IOException
datsrc
- input data sourceschemaUrl
- URL for 'schema' document which describes data
types (like twomass_psc_schema)java.io.IOException
protected java.util.List readRow(java.io.PushbackInputStream in) throws uk.ac.starlink.table.TableFormatException, java.io.IOException
readRow
in class uk.ac.starlink.table.formats.StreamStarTable
uk.ac.starlink.table.TableFormatException
java.io.IOException
protected uk.ac.starlink.table.formats.RowEvaluator.Metadata obtainMetadata() throws java.io.IOException
obtainMetadata
in class uk.ac.starlink.table.formats.StreamStarTable
java.io.IOException
protected uk.ac.starlink.table.formats.RowEvaluator.Metadata readSchema(java.io.InputStream in) throws java.io.IOException
in
- input stream for schema filejava.io.IOException
Copyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.